Skip to content

Commit 198fc4e

Browse files
SomeoneSergehodlen
authored andcommitted
workflows: nix-ci: add a qemu job for jetsons
1 parent e880a99 commit 198fc4e

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/nix-ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,44 @@ jobs:
6969
-- --skip-cached --no-nom
7070
--flake
7171
".#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

Comments
 (0)