|
69 | 69 | -- --skip-cached --no-nom
|
70 | 70 | --flake
|
71 | 71 | ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem)"
|
| 72 | + nix-build-aarch64: |
| 73 | + if: ${{ vars.CACHIX_NAME != '' }} |
| 74 | + runs-on: ubuntu-latest |
| 75 | + steps: |
| 76 | + - name: Checkout repository |
| 77 | + uses: actions/checkout@v4 |
| 78 | + - name: Install QEMU |
| 79 | + # Copy-paste from https://github.com/orgs/community/discussions/8305#discussioncomment-5888654 |
| 80 | + run: | |
| 81 | + sudo apt-get install -y qemu-user-static qemu-system-aarch64 |
| 82 | + sudo usermod -a -G kvm $USER |
| 83 | + - name: Install Nix |
| 84 | + uses: DeterminateSystems/nix-installer-action@v9 |
| 85 | + with: |
| 86 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 87 | + extra-conf: | |
| 88 | + extra-platforms = aarch64-linux |
| 89 | + extra-system-features = nixos-test kvm |
| 90 | + extra-substituters = https://${{ vars.CACHIX_NAME }}.cachix.org https://cuda-maintainers.cachix.org |
| 91 | + extra-trusted-public-keys = ${{ vars.CACHIX_PUBLIC_KEY }} cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E= |
| 92 | + - uses: DeterminateSystems/magic-nix-cache-action@v2 |
| 93 | + with: |
| 94 | + upstream-cache: https://${{ matrix.cachixName }}.cachix.org |
| 95 | + - name: Set-up cachix to push the results to |
| 96 | + uses: cachix/cachix-action@v13 |
| 97 | + with: |
| 98 | + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' |
| 99 | + name: ${{ vars.CACHIX_NAME }} |
| 100 | + - name: Show all output paths |
| 101 | + run: > |
| 102 | + nix run github:nix-community/nix-eval-jobs |
| 103 | + -- --gc-roots-dir gcroot |
| 104 | + --flake |
| 105 | + ".#packages.aarch64-linux" |
| 106 | + - name: Build |
| 107 | + run: > |
| 108 | + nix run github:Mic92/nix-fast-build |
| 109 | + -- --skip-cached --no-nom |
| 110 | + --systems aarch64-linux |
| 111 | + --flake |
| 112 | + ".#checks.aarch64-linux" |
0 commit comments