From 55b3f9f93ecd60435ca9e7b691c4e6fc9881ae48 Mon Sep 17 00:00:00 2001 From: Hans Date: Mon, 18 Nov 2024 23:50:06 +0800 Subject: [PATCH] ci: switch back QEMU + `arm64v8/ubuntu` --- .github/workflows/release.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab70b76..5a0e67d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,11 @@ jobs: - uses: actions/checkout@v4 with: submodules: 'true' + - name: Setup QEMU + if: runner.os == 'Linux' + uses: docker/setup-qemu-action@v3 + with: + platforms: linux/arm64 - uses: actions/setup-node@v4.0.2 with: node-version: 20 @@ -52,9 +57,10 @@ jobs: if: runner.os == 'Linux' run: | docker run --rm \ - -v $(pwd):/work \ - -e ARCH=arm64 \ - dockcross/linux-arm64:latest \ + -v $(pwd):/${{ github.workspace }} \ + -w /${{ github.workspace }} \ + --platform linux/arm64 \ + arm64v8/ubuntu:latest \ bash -c "./scripts/prepare-linux.sh && ./scripts/build-linux.sh" - name: Build (macOS) if: runner.os == 'macOS'