From 57d30ab77c35814654b719eb54e301811aee87b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Fri, 8 Nov 2024 13:50:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E8=B0=83=E6=95=B4=207?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/buildArm64-and-release.yml | 36 ++++++++------------ 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/.github/workflows/buildArm64-and-release.yml b/.github/workflows/buildArm64-and-release.yml index 6dcb4e3..cf50558 100644 --- a/.github/workflows/buildArm64-and-release.yml +++ b/.github/workflows/buildArm64-and-release.yml @@ -38,27 +38,21 @@ jobs: echo "github.ref = ${{ github.ref }}"; echo "github.ref_name = ${{ github.ref_name }}"; - - name: "build native modules using another arch" - uses: uraimo/run-on-arch-action@v2.3.0 - with: - arch: aarch64 - distro: ubuntu20.04 - githubToken: ${{ github.token }} - dockerRunArgs: | - --volume "/home/runner:/home/runner" - install: | - apt-get update && apt-get install curl -y - curl -fsSL https://deb.nodesource.com/setup_16.x | bash - - apt-get install -y nodejs gcc g++ make - corepack enable - run: | - uname -a -# chmod -R 777 /build -# cd /build -# pnpm config set store-dir /home/runner/.local/share/pnpm/store/v3 -# pnpm install -# cd icalingua -# pnpm build:electron install-app-deps + # step 2 + - name: "Set up QEMU" + id: qemu + uses: docker/setup-qemu-action@v3 + # step 3 + - name: "Build with Maven on 'arm64v8/ubuntu:20.04' OS" + run: | + docker run --rm \ + -v /home/runner:/home/runner \ + --workdir=/ws \ + arm64v8/ubuntu:20.04 \ + bash -exc 'apt-get update && apt-get install curl -y \ + curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \ + apt-get install -y nodejs gcc g++ make \ + corepack enable'; - name: "npm install -g lerna@6/yarn" run: |