Skip to content

Commit 381b6ec

Browse files
committed
GHA: add aarch64 qemu vm for nix
1 parent 7d9cb7c commit 381b6ec

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: "Build Packages"
23
on:
34
pull_request:
@@ -23,9 +24,15 @@ jobs:
2324
if: needs.pre-job.outputs.should_skip != 'true'
2425
steps:
2526
- uses: actions/checkout@v4
27+
- name: Set up QEMU
28+
uses: docker/setup-qemu-action@v3
29+
with:
30+
platforms: arm64
2631
- uses: cachix/install-nix-action@v31
2732
with:
2833
nix_path: nixpkgs=channel:nixos-unstable
34+
extra_nix_config: |
35+
extra-platforms = aarch64-linux i686-linux
2936
- uses: cachix/cachix-action@v16
3037
with:
3138
name: wires

.github/workflows/pr-preview.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: "PR Preview"
23
on:
34
push:
@@ -35,9 +36,15 @@ jobs:
3536
- uses: actions/checkout@v4
3637
with:
3738
ref: ${{ needs.base-ref.outputs.base-ref }}
39+
- name: Set up QEMU
40+
uses: docker/setup-qemu-action@v3
41+
with:
42+
platforms: arm64
3843
- uses: cachix/install-nix-action@v31
3944
with:
4045
nix_path: nixpkgs=channel:nixos-unstable
46+
extra_nix_config: |
47+
extra-platforms = aarch64-linux i686-linux
4148
- uses: cachix/cachix-action@v16
4249
with:
4350
name: wires
@@ -74,9 +81,15 @@ jobs:
7481
if: needs.eval-head.outputs.drv != needs.eval-base.outputs.drv
7582
steps:
7683
- uses: actions/checkout@v4
84+
- name: Set up QEMU
85+
uses: docker/setup-qemu-action@v3
86+
with:
87+
platforms: arm64
7788
- uses: cachix/install-nix-action@v31
7889
with:
7990
nix_path: nixpkgs=channel:nixos-unstable
91+
extra_nix_config: |
92+
extra-platforms = aarch64-linux i686-linux
8093
- uses: cachix/cachix-action@v16
8194
with:
8295
name: wires

0 commit comments

Comments
 (0)