Skip to content

Commit

Permalink
chore(ci): test for different GOOS & GOARCH
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 9, 2024
1 parent 3ee5dca commit fd5602a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Expand Up @@ -26,3 +26,22 @@ jobs:

- name: Test
run: go test ./...

test-goos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
cache: true
# https://go.dev/doc/install/source#environment
- run: GOOS=darwin GOARCH=amd64 go test -c -v ./...
- run: GOOS=darwin GOARCH=arm64 go test -c -v ./...
- run: GOOS=linux GOARCH=386 go test -c -v ./...
- run: GOOS=linux GOARCH=amd64 go test -c -v ./...
- run: GOOS=linux GOARCH=arm go test -c -v ./...
- run: GOOS=linux GOARCH=arm64 go test -c -v ./...
- run: GOOS=windows GOARCH=amd64 go test -c -v ./...
- run: GOOS=windows GOARCH=386 go test -c -v ./...
- run: GOOS=windows GOARCH=arm go test -c -v ./...
- run: GOOS=windows GOARCH=arm64 go test -c -v ./...

0 comments on commit fd5602a

Please sign in to comment.