From a08b2ec8d8624535c64e0f4e615d71e84a9d1a38 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Fri, 21 Mar 2025 12:48:55 +0100 Subject: [PATCH] .github: Use native ARM64 builders instead of QEMU The QEMU builder sporadically crashes in gcc. Since there are now native ARM64 build agents available, use that instead. Re-enable Go 1.23 for ARM64, the original Go 1.23 incompatibility with QEMU got resolved. --- .github/workflows/ci-actions.yml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci-actions.yml b/.github/workflows/ci-actions.yml index fd10e7b4..065eb138 100644 --- a/.github/workflows/ci-actions.yml +++ b/.github/workflows/ci-actions.yml @@ -41,27 +41,23 @@ jobs: run: go build -v ./... - name: Testing run: go test -v -count=1 ./... - exotic_job: - name: Go-${{matrix.CFG[2]}}/${{matrix.CFG[0]}} + arm64_job: + name: Go-${{matrix.GOVER}}/arm64 needs: [amd64_job] - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04-arm strategy: matrix: - CFG: [[arm64, arm64v8, '1.22']] + GOVER: ['1.23', '1.22'] steps: - uses: actions/checkout@v4 - - name: Enabling Docker Experimental - run: | - echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json - sudo service docker restart - - name: Pulling Images - run: | - docker pull -q multiarch/qemu-user-static - docker pull -q --platform linux/${{matrix.CFG[0]}} ${{matrix.CFG[1]}}/golang:${{matrix.CFG[2]}} - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + - name: Setup Go-${{ matrix.GOVER }} + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.GOVER }} + - name: Building + run: go build -v ./... - name: Testing - run: | - docker run --rm --platform linux/${{matrix.CFG[0]}} -v `pwd`:`pwd` -w `pwd` ${{matrix.CFG[1]}}/golang:${{matrix.CFG[2]}} go test -v ./... + run: go test -v -count=1 ./... build_modes: needs: [amd64_job] runs-on: ubuntu-22.04