mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
.github/workflows: Refactoring
This commit is contained in:
parent
4cbb3e54c1
commit
9a63bcb9fe
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
|||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libasound2-dev libgl1-mesa-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev
|
sudo apt-get install libasound2-dev libgl1-mesa-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev
|
||||||
@ -58,12 +58,12 @@ jobs:
|
|||||||
go mod tidy
|
go mod tidy
|
||||||
|
|
||||||
- name: Xvfb
|
- name: Xvfb
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
||||||
run: |
|
run: |
|
||||||
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
||||||
|
|
||||||
- name: go vet
|
- name: go vet
|
||||||
if: ${{ matrix.os != 'windows-latest' }} # TODO: Fix go vet errors on Windows. (#1306)
|
if: ${{ !startsWith(matrix.os, 'windows-') }} # TODO: Fix go vet errors on Windows. (#1306)
|
||||||
run: |
|
run: |
|
||||||
go vet -tags=example -v ./...
|
go vet -tags=example -v ./...
|
||||||
|
|
||||||
@ -80,13 +80,13 @@ jobs:
|
|||||||
env GOOS=windows GOARCH=386 go build -tags=example -v ./...
|
env GOOS=windows GOARCH=386 go build -tags=example -v ./...
|
||||||
|
|
||||||
- name: go test
|
- name: go test
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }} # TODO: Add more test environments (#1305)
|
if: ${{ startsWith(matrix.os, 'ubuntu-') }} # TODO: Add more test environments (#1305)
|
||||||
run: |
|
run: |
|
||||||
go test -tags=example -v ./...
|
go test -tags=example -v ./...
|
||||||
|
|
||||||
- name: go test (Wasm)
|
- name: go test (Wasm)
|
||||||
# TODO: Investigate times out on Windows. (#1313)
|
# TODO: Investigate times out on Windows. (#1313)
|
||||||
if: ${{ matrix.os != 'windows-latest' }}
|
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
||||||
run: |
|
run: |
|
||||||
env GOOS=js GOARCH=wasm go test -tags=example -v ./...
|
env GOOS=js GOARCH=wasm go test -tags=example -v ./...
|
||||||
env GOOS=js GOARCH=wasm go test -tags=example,ebitenwebgl1 -v ./...
|
env GOOS=js GOARCH=wasm go test -tags=example,ebitenwebgl1 -v ./...
|
||||||
@ -102,7 +102,7 @@ jobs:
|
|||||||
ebitenmobile bind -target android -javapkg com.hajimehoshi.goinovation -o inovation.aar -v github.com/hajimehoshi/go-inovation/mobile
|
ebitenmobile bind -target android -javapkg com.hajimehoshi.goinovation -o inovation.aar -v github.com/hajimehoshi/go-inovation/mobile
|
||||||
|
|
||||||
- name: ebitenmobile bind (iOS)
|
- name: ebitenmobile bind (iOS)
|
||||||
if: ${{ matrix.os == 'macos-latest' && !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') }}
|
if: ${{ startsWith(matrix.os, 'macos-') && !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') }}
|
||||||
run: |
|
run: |
|
||||||
cd /tmp/go-inovation
|
cd /tmp/go-inovation
|
||||||
ebitenmobile bind -target ios -o Inovation.framework -v github.com/hajimehoshi/go-inovation/mobile
|
ebitenmobile bind -target ios -o Inovation.framework -v github.com/hajimehoshi/go-inovation/mobile
|
||||||
|
Loading…
Reference in New Issue
Block a user