Skip to content

Commit

Permalink
ci: use docker/setup-qemu-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys-T committed Nov 15, 2024
1 parent a7b75ea commit a1262de
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ jobs:
($runner | split("/")) as [$displayRunner, $runner] |
select(($runner | startswith("ubuntu")) or ($nixpkgs | startswith("nixpkgs"))) |
($runner | split("+qemu-")) as [$runner, $qemuSystem] |
(if $qemuSystem then {
"aarch64-linux": "arm64",
}[$qemuSystem] else null end) as $qemuSystemForAction |
(if $qemuSystem then $subsets[] else "all" end) as $subset |
{$displayRunner, $runner, $qemuSystem, $nixpkgs, $subset, $nurRepo, $cachixName}
{$displayRunner, $runner, $qemuSystem, $qemuSystemForAction, $nixpkgs, $subset, $nurRepo, $cachixName}
]} |
@json "matrix=\(.)"
Expand All @@ -73,7 +76,9 @@ jobs:
uses: actions/checkout@v4
- name: Install qemu-user-static
if: ${{ matrix.qemuSystem != null }}
run: sudo apt update && sudo apt install qemu-user-static
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.qemuSystemForAction }}
- name: Install nix
uses: cachix/install-nix-action@v30
with:
Expand Down

0 comments on commit a1262de

Please sign in to comment.