mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-09-20 05:12:18 +02:00
Compare commits
5 Commits
f98003bcd5
...
2bbceec451
Author | SHA1 | Date | |
---|---|---|---|
|
2bbceec451 | ||
|
99b9cff0d0 | ||
|
71370a01bd | ||
|
67441c4823 | ||
|
faeb03373d |
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -168,10 +168,11 @@ jobs:
|
|||||||
env GOARCH=386 EBITENGINE_DIRECTX=version=12 go test -shuffle=on -v ./...
|
env GOARCH=386 EBITENGINE_DIRECTX=version=12 go test -shuffle=on -v ./...
|
||||||
|
|
||||||
- name: go test (Wasm)
|
- name: go test (Wasm)
|
||||||
if: runner.os != 'macOS'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
# Wasm tests don't work on macOS with the headless mode enabled, but the headless mode cannot be disabled in GitHub Actions (#2972).
|
# Wasm tests don't work on macOS with the headless mode enabled, but the headless mode cannot be disabled in GitHub Actions (#2972).
|
||||||
env GOOS=js GOARCH=wasm cleanenv -remove-prefix GITHUB_ -remove-prefix JAVA_ -remove-prefix PSModulePath -remove-prefix STATS_ -remove-prefix RUNNER_ -- go test -shuffle=on -v ./...
|
# Wasm tests time out on Windows (#3076).
|
||||||
|
env GOOS=js GOARCH=wasm cleanenv -remove-prefix GITHUB_ -remove-prefix JAVA_ -remove-prefix PSModulePath -remove-prefix STATS_ -remove-prefix RUNNER_ -- go test -shuffle=on -v ./... -test.paniconexit0=false
|
||||||
|
|
||||||
- name: Install ebitenmobile
|
- name: Install ebitenmobile
|
||||||
run: |
|
run: |
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
# How to execute the examples
|
|
||||||
|
|
||||||
## Desktops
|
|
||||||
|
|
||||||
```sh
|
|
||||||
go run github.com/hajimehoshi/ebiten/v2/examples/rotate@latest
|
|
||||||
```
|
|
||||||
|
|
||||||
## Android
|
|
||||||
|
|
||||||
Install [gomobile](https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile) first.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
gomobile install github.com/hajimehoshi/ebiten/v2/examples/rotate@latest
|
|
||||||
```
|
|
||||||
|
|
||||||
## iOS
|
|
||||||
|
|
||||||
```sh
|
|
||||||
gomobile build -target=ios -work github.com/hajimehoshi/ebiten/v2/examples/rotate@latest
|
|
||||||
```
|
|
||||||
|
|
||||||
Then, open the `WORK` directory, open `main.xcodeproj`, add signing, and run the project.
|
|
@ -78,7 +78,9 @@ func TestMain(m *testing.M) {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
os.Exit(<-codeCh)
|
if code := <-codeCh; code != 0 {
|
||||||
|
os.Exit(code)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type testResult struct {
|
type testResult struct {
|
||||||
|
@ -47,5 +47,7 @@ func MainWithRunLoop(m *testing.M) {
|
|||||||
if err := ebiten.RunGame(g); err != nil {
|
if err := ebiten.RunGame(g); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
os.Exit(g.code)
|
if g.code != 0 {
|
||||||
|
os.Exit(g.code)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user