Add ARM release workflow #3104
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: ['main', 'release/**'] | |
paths: | |
- '**' | |
- '!docs/**' # ignore docs changes | |
- '!**.md' # ignore markdown changes | |
pull_request: | |
branches: ['main', 'release/**'] | |
paths: | |
- '.github/workflows/build.yml' | |
- '**.go' | |
- 'go.*' | |
- 'cmd/go.*' | |
- 'Makefile' | |
- 'Dockerfile' | |
- 'integration/**' | |
- 'scripts/**' | |
- '!benchmark/**' | |
env: | |
GO_VERSION: '1.22.11' | |
jobs: | |
setup: | |
uses: ./.github/workflows/setup.yml | |
test: | |
needs: setup | |
runs-on: ${{ fromJSON(needs.setup.outputs.runner-labels)[matrix.os] }} | |
strategy: | |
matrix: | |
os: ${{ fromJSON(needs.setup.outputs.available-runners) }} | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Install zlib static on AL2 ARM instances | |
if: matrix.os == 'al2-arm' | |
run: dnf install zlib-static.aarch64 -y | |
- run: make | |
- run: make test-with-coverage | |
- name: Show test coverage | |
run: make show-test-coverage | |
integration: | |
needs: setup | |
runs-on: ${{ fromJSON(needs.setup.outputs.runner-labels)[matrix.os] }} | |
timeout-minutes: 40 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ${{ fromJSON(needs.setup.outputs.available-runners) }} | |
containerd: ["1.6.36", "1.7.25", "2.0.2"] | |
env: | |
DOCKER_BUILD_ARGS: "CONTAINERD_VERSION=${{ matrix.containerd }}" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Install zlib static on AL2 ARM instances | |
if: matrix.os == 'al2-arm' | |
run: dnf install zlib-static.aarch64 -y | |
- run: make integration-with-coverage | |
- name: Show test coverage | |
run: make show-integration-coverage |