.github/workflows: drop Go 1.15 from the supported environments (#44)
Updates #43
- commit
- 18653476e1b647930d9b3bf1d26403c2f1e3b868
- author
- Hajime Hoshi · · 2022-09-13 15:05 UTC
- committer
- GitHub · · 2022-09-13 15:05 UTC
- parent
- b26478a
- signature
- GPG Unverified
4AEE18F83AFDEB23The key is unknown
2 files · +5 -11
M .github/workflows/test.yml +4 -10
| @@ -7,7 +7,7 @@ jobs: | |||
| 7 | 7 | strategy: | |
| 8 | 8 | matrix: | |
| 9 | 9 | os: [ubuntu-latest, macos-latest, windows-latest] | |
| 10 | - | go: ['1.15.x', '1.16.x', '1.17.x', '1.18.x', '1.19.x'] | |
| 10 | + | go: ['1.16.x', '1.17.x', '1.18.x', '1.19.x'] | |
| 11 | 11 | name: Test with Go ${{ matrix.go }} on ${{ matrix.os }} | |
| 12 | 12 | runs-on: ${{ matrix.os }} | |
| 13 | 13 | defaults: | |
| @@ -48,21 +48,15 @@ jobs: | |||
| 48 | 48 | ||
| 49 | 49 | # Check cross-compiling macOS binaries. | |
| 50 | 50 | env GOOS=darwin GOARCH=amd64 go build -v ./... | |
| 51 | + | env GOOS=darwin GOARCH=arm64 go build -v ./... | |
| 51 | 52 | ||
| 52 | 53 | - name: go build (Windows, ARM64) | |
| 53 | 54 | # Go 1.16 and older don't support the pair GOOS=windows and GOARCH=arm64. | |
| 54 | - | if: ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') }} | |
| 55 | + | if: ${{ !startsWith(matrix.go, '1.16.') }} | |
| 55 | 56 | run: | | |
| 56 | 57 | # Check cross-compiling Windows binaries. | |
| 57 | 58 | env GOOS=windows GOARCH=arm64 go build -v ./... | |
| 58 | 59 | ||
| 59 | - | - name: go build (macOS, ARM64) | |
| 60 | - | # Purego doesn't support the pair GOOS=darwin and GOARCH=arm64 with Go 1.15 so far (#37). | |
| 61 | - | if: ${{ !startsWith(matrix.go, '1.15.') }} | |
| 62 | - | run: | | |
| 63 | - | # Check cross-compiling macOS binaries. | |
| 64 | - | env GOOS=darwin GOARCH=arm64 go build -v ./... | |
| 65 | - | ||
| 66 | 60 | - name: go mod vendor | |
| 67 | 61 | if: ${{ !startsWith(matrix.os, 'ubuntu-') }} | |
| 68 | 62 | run: | | |
| @@ -81,4 +75,4 @@ jobs: | |||
| 81 | 75 | ||
| 82 | 76 | - name: go test | |
| 83 | 77 | run: | | |
| 84 | - | go test ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v -count=10 ./... | |
| 78 | + | go test ${{ !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v -count=10 ./... | |
| @@ -7,7 +7,7 @@ jobs: | |||||
| 7 | strategy: | 7 | strategy: | ||
| 8 | matrix: | 8 | matrix: | ||
| 9 | os: [ubuntu-latest, macos-latest, windows-latest] | 9 | os: [ubuntu-latest, macos-latest, windows-latest] | ||
| 10 | - | go: ['1.15.x', '1.16.x', '1.17.x', '1.18.x', '1.19.x'] | 10 | + | go: ['1.16.x', '1.17.x', '1.18.x', '1.19.x'] |
| 11 | name: Test with Go ${{ matrix.go }} on ${{ matrix.os }} | 11 | name: Test with Go ${{ matrix.go }} on ${{ matrix.os }} | ||
| 12 | runs-on: ${{ matrix.os }} | 12 | runs-on: ${{ matrix.os }} | ||
| 13 | defaults: | 13 | defaults: | ||
| @@ -48,21 +48,15 @@ jobs: | |||||
| 48 | 48 | ||||
| 49 | # Check cross-compiling macOS binaries. | 49 | # Check cross-compiling macOS binaries. | ||
| 50 | env GOOS=darwin GOARCH=amd64 go build -v ./... | 50 | env GOOS=darwin GOARCH=amd64 go build -v ./... | ||
| 51 | + | env GOOS=darwin GOARCH=arm64 go build -v ./... | |||
| 51 | 52 | ||||
| 52 | - name: go build (Windows, ARM64) | 53 | - name: go build (Windows, ARM64) | ||
| 53 | # Go 1.16 and older don't support the pair GOOS=windows and GOARCH=arm64. | 54 | # Go 1.16 and older don't support the pair GOOS=windows and GOARCH=arm64. | ||
| 54 | - | if: ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') }} | 55 | + | if: ${{ !startsWith(matrix.go, '1.16.') }} |
| 55 | run: | | 56 | run: | | ||
| 56 | # Check cross-compiling Windows binaries. | 57 | # Check cross-compiling Windows binaries. | ||
| 57 | env GOOS=windows GOARCH=arm64 go build -v ./... | 58 | env GOOS=windows GOARCH=arm64 go build -v ./... | ||
| 58 | 59 | ||||
| 59 | - | - name: go build (macOS, ARM64) | |||
| 60 | - | # Purego doesn't support the pair GOOS=darwin and GOARCH=arm64 with Go 1.15 so far (#37). | |||
| 61 | - | if: ${{ !startsWith(matrix.go, '1.15.') }} | |||
| 62 | - | run: | | |||
| 63 | - | # Check cross-compiling macOS binaries. | |||
| 64 | - | env GOOS=darwin GOARCH=arm64 go build -v ./... | |||
| 65 | - | ||||
| 66 | - name: go mod vendor | 60 | - name: go mod vendor | ||
| 67 | if: ${{ !startsWith(matrix.os, 'ubuntu-') }} | 61 | if: ${{ !startsWith(matrix.os, 'ubuntu-') }} | ||
| 68 | run: | | 62 | run: | | ||
| @@ -81,4 +75,4 @@ jobs: | |||||
| 81 | 75 | ||||
| 82 | - name: go test | 76 | - name: go test | ||
| 83 | run: | | 77 | run: | | ||
| 84 | - | go test ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v -count=10 ./... | 78 | + | go test ${{ !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v -count=10 ./... |
M go.mod +1 -1
| @@ -1,3 +1,3 @@ | |||
| 1 | 1 | module github.com/ebitengine/purego | |
| 2 | 2 | ||
| 3 | - | go 1.15 | |
| 3 | + | go 1.16 | |
| @@ -1,3 +1,3 @@ | |||||
| 1 | module github.com/ebitengine/purego | 1 | module github.com/ebitengine/purego | ||
| 2 | 2 | ||||
| 3 | - | go 1.15 | 3 | + | go 1.16 |