.github/workflows: add aarch64-linux runner
This commit is contained in:
parent
31f1d1c6ee
commit
7fbeba20ae
2 changed files with 26 additions and 0 deletions
21
.github/workflows/build.yaml
vendored
21
.github/workflows/build.yaml
vendored
|
@ -59,3 +59,24 @@ jobs:
|
|||
run: |
|
||||
nix run .#attic -- login nrab-attic 'https://cache.nrab.lol/' ${{ secrets.ATTIC_TOKEN }}
|
||||
nix run .#attic -- push nrab-attic:public result
|
||||
|
||||
build-aarch64-linux:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [matrix]
|
||||
if: ${{ needs.matrix.outputs.aarch64-linux != '[]' && needs.matrix.outputs.aarch64-linux != '' }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
output: ${{ fromJson(needs.matrix.outputs.aarch64-linux )}}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: docker/setup-qemu-action@v3
|
||||
- uses: ./.github/actions/install-nix
|
||||
with:
|
||||
extra-conf: extra-platforms = aarch64-linux
|
||||
- name: Build output
|
||||
run: nix build .#${{ matrix.output }} -L
|
||||
- name: Push output
|
||||
run: |
|
||||
nix run .#attic -- login nrab-attic 'https://cache.nrab.lol/' ${{ secrets.ATTIC_TOKEN }}
|
||||
nix run .#attic -- push nrab-attic:public result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue