Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github: Use native ARM64 builders instead of QEMU #542

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 11 additions & 15 deletions .github/workflows/ci-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down