Skip to content

Commit

Permalink
.github/workflows: remove unused build tags
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Sep 11, 2023
1 parent 96b6806 commit 7ab5257
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,29 @@ jobs:
- name: go vet
if: ${{ !startsWith(matrix.os, 'windows-') && !startsWith(matrix.os, 'macos-') }}
run: |
go vet -tags=example -v ./...
go vet -v ./...
- name: go build
run: |
go build -tags=example -v ./...
go build -v ./...
# Compile without optimization to check potential stack overflow.
# The option '-gcflags=all=-N -l' is often used at Visual Studio Code.
# See also https://go.googlesource.com/vscode-go/+/HEAD/docs/debugging.md#launch and the issue hajimehoshi/ebiten#2120.
go build -tags=example "-gcflags=all=-N -l" -v ./...
go build "-gcflags=all=-N -l" -v ./...
# Check cross-compiling WebAssembly.
# Unfortunately it is difficult to test Oto on browsers since this requires user interactions.
env GOOS=js GOARCH=wasm go build -tags=example -v ./...
env GOOS=js GOARCH=wasm go build -v ./...
# Check cross-compiling Windows binaries.
env GOOS=windows GOARCH=386 go build -tags=example -v ./...
env GOOS=windows GOARCH=amd64 go build -tags=example -v ./...
env GOOS=windows GOARCH=arm go build -tags=example -v ./...
env GOOS=windows GOARCH=arm64 go build -tags=example -v ./...
env GOOS=windows GOARCH=386 go build -v ./...
env GOOS=windows GOARCH=amd64 go build -v ./...
env GOOS=windows GOARCH=arm go build -v ./...
env GOOS=windows GOARCH=arm64 go build -v ./...
# Check cross-compiling macOS binaries.
env GOOS=darwin GOARCH=amd64 go build -tags=example -v ./...
env GOOS=darwin GOARCH=arm64 go build -tags=example -v ./...
env GOOS=darwin GOARCH=amd64 go build -v ./...
env GOOS=darwin GOARCH=arm64 go build -v ./...
- name: go mod vendor
run: |
Expand All @@ -78,4 +78,4 @@ jobs:
- name: go test
run: |
go test -tags=example -shuffle=on -v -count=10 ./...
go test -shuffle=on -v -count=10 ./...

0 comments on commit 7ab5257

Please sign in to comment.