diff --git a/.github/workflows/client-builder.yml b/.github/workflows/client-builder.yml index a48a6b0..0c4798a 100644 --- a/.github/workflows/client-builder.yml +++ b/.github/workflows/client-builder.yml @@ -28,6 +28,15 @@ jobs: run: npm run pkglinux:x64 working-directory: client + - name: Install QEMU # 设置qemu 支持arm的虚拟环境 + run: sudo apt-get update && sudo apt-get install -y qemu qemu-user-static binfmt-support + + - name: Setup QEMU ARM64 + run: | + sudo update-binfmts --enable qemu-aarch64 + sudo cp /usr/bin/qemu-aarch64-static /usr/local/bin + uname -a + - name: Build for Linux arm64 run: npm run pkglinux:arm64 working-directory: client @@ -46,15 +55,6 @@ jobs: asset_name: easynode-client-x86 asset_content_type: application/octet-stream - - name: Install QEMU - run: sudo apt-get update && sudo apt-get install -y qemu qemu-user-static binfmt-support - - - name: Setup QEMU ARM64 - run: | - sudo update-binfmts --enable qemu-aarch64 - sudo cp /usr/bin/qemu-aarch64-static /usr/local/bin - uname -a - - name: Upload Linux ARM64 Binary to Release uses: actions/upload-release-asset@v1 env: