Skip to content

Commit

Permalink
chore: improve workflow to test building on more os arch
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfogre committed Aug 2, 2024
1 parent 31e98f5 commit a1b5b93
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ jobs:
go get .
- name: Build (${{ matrix.dir }})
working-directory: ./${{ matrix.dir }}
run: go build -v ./...
run: |
for OSARCH in $(go tool dist list); do
IFS="/" read -r OS ARCH <<< "$OSARCH"
echo "Building for $OS $ARCH"
GOOS=$OS GOARCH=$ARCH go build ./...
done
- name: Test (${{ matrix.dir }})
working-directory: ./${{ matrix.dir }}
run: go test -v ./...

0 comments on commit a1b5b93

Please sign in to comment.