nixos-x13s/.forgejo/workflows/build.yaml

38 lines
967 B
YAML
Raw Normal View History

2024-02-09 15:01:25 +01:00
on:
pull_request:
push:
jobs:
kernel:
runs-on: local/aarch64-linux
steps:
- uses: actions/checkout@v4
- name: set home
run: |
echo "HOME=$PWD" >> "$GITHUB_ENV"
2024-02-09 19:38:34 +01:00
- name: build all
run: |
OUTPUT=$(nix build --print-out-paths .#x13s/linux .#x13s/alsa-ucm-conf .#pd-mapper .#x13s/extra-firmware)
echo $OUTPUT
2024-02-09 19:38:34 +01:00
echo "$OUTPUT" > build.out
2024-02-09 15:01:25 +01:00
- name: upload to cachix
run: |
2024-02-09 19:38:34 +01:00
cachix push nixos-x13s $(cat build.out)
2024-02-09 15:01:25 +01:00
env:
CACHIX_AUTH_TOKEN: '${{ secrets.CACHIX_TOKEN_X13S }}'
- name: upload to attic
run: |
attic login --set-default $ATTIC_CACHE $ATTIC_ENDPOINT $ATTIC_TOKEN
attic use $ATTIC_CACHE
2024-02-09 19:38:34 +01:00
attic push $ATTIC_CACHE $(cat build.out)
2024-02-09 15:01:25 +01:00
env:
ATTIC_ENDPOINT: ${{ vars.ATTIC_ENDPOINT }}
ATTIC_CACHE: ${{ vars.ATTIC_CACHE }}
ATTIC_TOKEN: ${{ secrets.ATTIC_KEY }}