.github/workflows: drop Go 1.15 support

Updates #2323
This commit is contained in:
Hajime Hoshi 2022-09-13 23:33:20 +09:00
parent 6b906bb813
commit 49e2254e79
3 changed files with 12 additions and 15 deletions

View File

@ -7,7 +7,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest, windows-latest] os: [ubuntu-latest, macos-latest, windows-latest]
go: ['1.15.x', '1.16.x', '1.17.x', '1.18.x', '1.19.x'] go: ['1.16.x', '1.17.x', '1.18.x', '1.19.x']
name: Test with Go ${{ matrix.go }} on ${{ matrix.os }} name: Test with Go ${{ matrix.go }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env: env:
@ -54,7 +54,7 @@ jobs:
mv ./wasmbrowsertest${{ startsWith(matrix.os, 'windows-') && '.exe' || '' }} $(go env GOPATH)/bin/go_js_wasm_exec${{ startsWith(matrix.os, 'windows-') && '.exe' || '' }} mv ./wasmbrowsertest${{ startsWith(matrix.os, 'windows-') && '.exe' || '' }} $(go env GOPATH)/bin/go_js_wasm_exec${{ startsWith(matrix.os, 'windows-') && '.exe' || '' }}
- name: Prepare ebitenmobile test - name: Prepare ebitenmobile test
if: ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') }} if: ${{ !startsWith(matrix.go, '1.16.') }}
run: | run: |
local_ebiten=$(pwd) local_ebiten=$(pwd)
cd /tmp cd /tmp
@ -91,12 +91,12 @@ jobs:
env GOOS=windows GOARCH=arm go build -tags=example -v ./... env GOOS=windows GOARCH=arm go build -tags=example -v ./...
- name: go build (Windows ARM64) - name: go build (Windows ARM64)
if: ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') }} if: ${{ !startsWith(matrix.go, '1.16.') }}
run: | run: |
env GOOS=windows GOARCH=arm64 go build -tags=example -v ./... env GOOS=windows GOARCH=arm64 go build -tags=example -v ./...
- name: go build (macOS) - name: go build (macOS)
if: ${{ startsWith(matrix.os, 'macos-') && !startsWith(matrix.go, '1.15.') }} if: ${{ startsWith(matrix.os, 'macos-') }}
run: | run: |
env CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -tags=example -v ./... env CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -tags=example -v ./...
env CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -tags=example -o flappy_amd64 -v ./examples/flappy env CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -tags=example -o flappy_amd64 -v ./examples/flappy
@ -132,7 +132,7 @@ jobs:
# TODO: Add more test environments (#1305) # TODO: Add more test environments (#1305)
if: ${{ startsWith(matrix.os, 'ubuntu-') || startsWith(matrix.os, 'windows-') }} if: ${{ startsWith(matrix.os, 'ubuntu-') || startsWith(matrix.os, 'windows-') }}
run: | run: |
go test -tags=example ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v ./... go test -tags=example ${{ !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v ./...
- name: go test (Linux 386) - name: go test (Linux 386)
if: ${{ startsWith(matrix.os, 'ubuntu-') }} if: ${{ startsWith(matrix.os, 'ubuntu-') }}
@ -141,30 +141,30 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install gcc-multilib sudo apt-get install gcc-multilib
sudo apt-get install libasound2-dev:i386 libgl1-mesa-dev:i386 libxcursor-dev:i386 libxi-dev:i386 libxinerama-dev:i386 libxrandr-dev:i386 libxxf86vm-dev:i386 sudo apt-get install libasound2-dev:i386 libgl1-mesa-dev:i386 libxcursor-dev:i386 libxi-dev:i386 libxinerama-dev:i386 libxrandr-dev:i386 libxxf86vm-dev:i386
env CGO_ENABLED=1 GOARCH=386 go test -tags=example ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v ./... env CGO_ENABLED=1 GOARCH=386 go test -tags=example ${{ !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v ./...
- name: go test (Windows 386) - name: go test (Windows 386)
if: ${{ startsWith(matrix.os, 'windows-') }} if: ${{ startsWith(matrix.os, 'windows-') }}
run: | run: |
env GOARCH=386 go test -tags=example ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v ./... env GOARCH=386 go test -tags=example ${{ !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v ./...
- name: go test (Wasm) - name: go test (Wasm)
run: | run: |
env GOOS=js GOARCH=wasm go test -tags=example ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v ./... env GOOS=js GOARCH=wasm go test -tags=example ${{ !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v ./...
env GOOS=js GOARCH=wasm EBITENGINE_OPENGL=webgl1 go test -tags=example ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v ./... env GOOS=js GOARCH=wasm EBITENGINE_OPENGL=webgl1 go test -tags=example ${{ !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v ./...
- name: Install ebitenmobile - name: Install ebitenmobile
run: | run: |
go install ./cmd/ebitenmobile go install ./cmd/ebitenmobile
- name: ebitenmobile bind (Android) - name: ebitenmobile bind (Android)
if: ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') }} if: ${{ !startsWith(matrix.go, '1.16.') }}
run: | run: |
cd /tmp/go-inovation cd /tmp/go-inovation
ebitenmobile bind -target android -androidapi 19 -javapkg com.hajimehoshi.goinovation -o inovation.aar -v github.com/hajimehoshi/go-inovation/mobile ebitenmobile bind -target android -androidapi 19 -javapkg com.hajimehoshi.goinovation -o inovation.aar -v github.com/hajimehoshi/go-inovation/mobile
- name: ebitenmobile bind (iOS) - name: ebitenmobile bind (iOS)
if: ${{ startsWith(matrix.os, 'macos-') && !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') }} if: ${{ startsWith(matrix.os, 'macos-') && !startsWith(matrix.go, '1.16.') }}
run: | run: |
cd /tmp/go-inovation cd /tmp/go-inovation
ebitenmobile bind -target ios -o Inovation.xcframework -v github.com/hajimehoshi/go-inovation/mobile ebitenmobile bind -target ios -o Inovation.xcframework -v github.com/hajimehoshi/go-inovation/mobile

View File

@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License // limitations under the License
//go:build go1.16
// +build go1.16
package ebitenutil package ebitenutil
import ( import (

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/hajimehoshi/ebiten/v2 module github.com/hajimehoshi/ebiten/v2
go 1.15 go 1.16
require ( require (
github.com/ebitengine/purego v0.0.0-20220910041003-a51c01493ff9 github.com/ebitengine/purego v0.0.0-20220910041003-a51c01493ff9