Skip to content

Commit

Permalink
feat(ci): use binfmt for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
uulm-janbaudisch committed Aug 15, 2024
1 parent 771c4b9 commit f973516
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,37 @@ jobs:
fail-fast: false
matrix:
target:
- double: x86_64-linux # target we are building for
system: x86_64-linux # host system the build is running on
runner: ubuntu-24.04 # GitHub runner the build is running on
flake: bundled # flake part to build
- double: aarch64-linux
system: aarch64-linux
- double: aarch64-linux # target we are building for
emulated: true # whether this build host is being emulated
runner: ubuntu-24.04 # GitHub runner the build is running on
flake: bundled # flake part to build
- double: x86_64-linux
runner: ubuntu-24.04
flake: bundled
- double: x86_64-darwin
system: x86_64-darwin
runner: macos-13
flake: bundled
- double: aarch64-darwin
system: aarch64-darwin
runner: macos-latest
flake: bundled
- double: x86_64-darwin
runner: macos-13
flake: bundled
- double: x86_64-windows
system: x86_64-linux
runner: ubuntu-24.04
flake: bundled-windows
runs-on: ${{ matrix.target.runner }}
steps:
- name: Checkout
uses: actions/checkout@v4
# aarch64-linux builds are emulated on x86_64-linux.
- name: QEMU
if: ${{ matrix.target.double == 'aarch64-linux' }}
run: sudo apt-get install -y qemu-user-static
if: ${{ matrix.target.emulated }}
run: sudo apt-get install -y qemu-user-binfmt binfmt-support
- name: Nix
if: ${{ !matrix.target.emulated }}
uses: DeterminateSystems/nix-installer-action@v10
- name: Nix (emulated)
if: ${{ matrix.target.emulated }}
uses: DeterminateSystems/nix-installer-action@v10
with:
extra-conf: system = ${{ matrix.target.system }}
extra-conf: system = ${{ matrix.target.double }}
- name: Cache
uses: DeterminateSystems/magic-nix-cache-action@v4
- name: Build
Expand Down

0 comments on commit f973516

Please sign in to comment.