Skip to content

Rebuild with golang-1.22.3 #1070

Rebuild with golang-1.22.3

Rebuild with golang-1.22.3 #1070

Workflow file for this run

name: Build
on:
push:
branches: [ main, amazonlinux ]
pull_request:
branches: [ main, amazonlinux ]
jobs:
build:
strategy:
matrix:
go: ['1.15', '1.16', '1.17', '1.18']
# Intentionally use specific versions instead of "latest" to
# make this build reproducible.
os: ['ubuntu-22.04', 'macos-12']
# Build all variants regardless of failures
fail-fast: false
name: ${{ matrix.os }} / Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- run: make get-deps
if: ${{ matrix.go >= '1.17' }}
# Apple Silicon is not supported by Go < 1.16.
# https://go.dev/blog/go1.16
- name: Cross-compile all variants
run: make all-variants
if: ${{ matrix.go >= '1.16' }}
- name: Cross-compile all variants except for Apple Silicon
run: make linux-amd64 linux-arm64 darwin-amd64 windows-amd64
if: ${{ matrix.go < '1.16' }}
- run: make test