Skip to content

Commit

Permalink
ci: fix build Linux aarch64 release
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Nov 18, 2024
1 parent df2fcc5 commit da8d839
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- uses: actions/[email protected]
with:
node-version: 20
Expand Down Expand Up @@ -51,8 +53,12 @@ jobs:
- name: Prepare & build (Linux arm64)
if: runner.os == 'Linux'
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker run --rm --volume $(pwd):/app --workdir /app -t arm64v8/ubuntu bash -c "./scripts/prepare-linux.sh && ./scripts/build-linux.sh"
docker run --rm \
--volume $(pwd):/app \
--workdir /app \
-t arm64v8/ubuntu \
--platform linux/arm64 \
bash -c "./scripts/prepare-linux.sh && ./scripts/build-linux.sh"
- name: Build (macOS)
if: runner.os == 'macOS'
run: bash ./scripts/build-macos.sh
Expand Down

0 comments on commit da8d839

Please sign in to comment.