Skip to content

Commit

Permalink
github/workflows: add job to validate cross-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Sep 22, 2024
1 parent 5c38ffa commit d747f8e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,36 @@ on:
- main

jobs:
# Validates that we can compile on the targets below
compile:
strategy:
matrix:
go_version:
- "1.22"
- "1.23"
os:
- freebsd
- macos
- ubuntu
- windows
goarch:
- amd64
- arm64

name: cross-compilation (GOOS=${{ matrix.goos }}, GOARCH=${{ matrix.goarch }})
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- uses: actions/[email protected]
with:
go-version: "1.x"

- run: go build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}

test:
strategy:
matrix:
Expand Down

0 comments on commit d747f8e

Please sign in to comment.