Skip to content

Commit 9128844

Browse files
committed
.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.
1 parent 89e658c commit 9128844

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

.github/workflows/ci-actions.yml

+11-15
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,23 @@ jobs:
4141
run: go build -v ./...
4242
- name: Testing
4343
run: go test -v -count=1 ./...
44-
exotic_job:
45-
name: Go-${{matrix.CFG[2]}}/${{matrix.CFG[0]}}
44+
arm64_job:
45+
name: Go-${{matrix.GOVER}}/arm64
4646
needs: [amd64_job]
47-
runs-on: ubuntu-22.04
47+
runs-on: ubuntu-24.04-arm
4848
strategy:
4949
matrix:
50-
CFG: [[arm64, arm64v8, '1.22']]
50+
GOVER: ['1.23', '1.22']
5151
steps:
5252
- uses: actions/checkout@v4
53-
- name: Enabling Docker Experimental
54-
run: |
55-
echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json
56-
sudo service docker restart
57-
- name: Pulling Images
58-
run: |
59-
docker pull -q multiarch/qemu-user-static
60-
docker pull -q --platform linux/${{matrix.CFG[0]}} ${{matrix.CFG[1]}}/golang:${{matrix.CFG[2]}}
61-
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
53+
- name: Setup Go-${{ matrix.GOVER }}
54+
uses: actions/setup-go@v5
55+
with:
56+
go-version: ${{ matrix.GOVER }}
57+
- name: Building
58+
run: go build -v ./...
6259
- name: Testing
63-
run: |
64-
docker run --rm --platform linux/${{matrix.CFG[0]}} -v `pwd`:`pwd` -w `pwd` ${{matrix.CFG[1]}}/golang:${{matrix.CFG[2]}} go test -v ./...
60+
run: go test -v -count=1 ./...
6561
build_modes:
6662
needs: [amd64_job]
6763
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)