Skip to content

Commit

Permalink
Attempt to run the aarch64-linux build through binfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
r-vdp committed May 31, 2024
1 parent 2cc68be commit 1e0e1dd
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build-hds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
strategy:
matrix:
build-config:
- { system: x86_64-linux, runner: "ubuntu-latest" }
- { system: aarch64-linux, runner: "ubuntu-latest" }
- { system: aarch64-darwin, runner: "macos-latest" }
- { system: x86_64-linux, runner: "ubuntu-latest", native: true }
- { system: aarch64-linux, runner: "ubuntu-latest", native: false }
- { system: aarch64-darwin, runner: "macos-latest", native: true }
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -44,11 +44,23 @@ jobs:
tar -xz --strip-components=1 --
- name: "build holo-dev-server"
if: ${{ matrix.build-config.native }}
run: |
nix build -vL \
--out-link holo-dev-server \
'.#legacyPackages.${{ matrix.build-config.system }}.holo-dev-server-bin'
- name: "build holo-dev-server"
if: ${{ ! matrix.build-config.native }}
run: |
sudo apt install binfmt-support qemu-user-static
nix build -vL \
--option extra-platforms aarch64-linux \
--option extra-sandbox-paths "/usr/libexec/qemu-binfmt /usr/bin/qemu-aarch64-static /usr/bin/qemu-aarch64-static /usr/bin/qemu-arm-static" \
--out-link holo-dev-server \
'.#legacyPackages.${{ matrix.build-config.system }}.holo-dev-server-bin'
- name: get nixpkgs revision
id: nixpkgs-revision
run: |
Expand Down

0 comments on commit 1e0e1dd

Please sign in to comment.