From cd473e8829aaeaa3af203f4988b2daa1cee62672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=B0=8F=E7=99=BD?= <296015668@qq.com> Date: Sun, 19 Jan 2025 12:57:49 +0800 Subject: [PATCH] perf: Use GitHub hosted arm Linux runner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴小白 <296015668@qq.com> --- .github/workflows/posix.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 3b73d23..a1920f8 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -57,30 +57,30 @@ jobs: MB_ML_VER: _1_2 - - os: ubuntu-latest + - os: ubuntu-24.04-arm PLAT: aarch64 INTERFACE64: '0' MB_ML_VER: '2014' - - os: ubuntu-latest + - os: ubuntu-24.04-arm PLAT: aarch64 INTERFACE64: '1' MB_ML_VER: '2014' - - os: ubuntu-latest + - os: ubuntu-24.04-arm PLAT: aarch64 INTERFACE64: '0' MB_ML_LIBC: musllinux MB_ML_VER: _1_1 - - os: ubuntu-latest + - os: ubuntu-24.04-arm PLAT: aarch64 INTERFACE64: '1' MB_ML_LIBC: musllinux MB_ML_VER: _1_1 - - os: ubuntu-latest + - os: ubuntu-24.04-arm PLAT: aarch64 INTERFACE64: '0' MB_ML_LIBC: musllinux MB_ML_VER: _1_2 - - os: ubuntu-latest + - os: ubuntu-24.04-arm PLAT: aarch64 INTERFACE64: '1' MB_ML_LIBC: musllinux @@ -119,13 +119,6 @@ jobs: with: xcode-version: '14.3' - - name: Allow docker with qemu - if: ${{ matrix.PLAT == 'aarch64' }} - run: | - sudo apt-get update -q -y - sudo apt-get -qq install -y qemu qemu-user-static - sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes --credential yes - - name: Print some Environment variable run: | echo "PLAT: ${PLAT}" @@ -189,6 +182,7 @@ jobs: - uses: conda-incubator/setup-miniconda@v3.0.4 with: + architecture: ${{ env.PLAT == 'aarch64' && 'aarch64' || '' }} channels: conda-forge channel-priority: true activate-environment: upload