Skip to content

Commit

Permalink
Adds multiplatform build CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonc committed Nov 9, 2023
1 parent d3c0d14 commit e72a58d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@ name: test
on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0

- name: setup go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: go.mod

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

unit-test:
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions internal/unpackinfo/lchtimes_others.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !darwin || (linux && !amd64) || (linux && !arm64) || (linux && !amd) || (linux && !arm)
// +build !darwin linux,!amd64 linux,!arm64 linux,!amd linux,!arm
//go:build !darwin && linux && !amd64 && linux && !arm64 && linux && !amd && linux && !arm
// +build !darwin,linux,!amd64,linux,!arm64,linux,!amd,linux,!arm

package unpackinfo

Expand Down

0 comments on commit e72a58d

Please sign in to comment.