Generalize run option overriding #1305
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 gactar | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
goarch: [amd64, arm64] | |
exclude: | |
- os: windows-latest | |
goarch: arm64 | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- name: Build | |
run: env GOARCH=${{ matrix.goarch }} make | |
- name: Test | |
if: ${{ matrix.goarch == 'amd64' }} | |
run: go test ./... |