mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
Use Go 1.14 for Wasm
Go 1.13 has memory issue on Wasm (golang/go#35111). Use Go 1.14 instead.
This commit is contained in:
parent
90ccd4c440
commit
7f4a82ddf0
@ -32,6 +32,10 @@ install:
|
||||
- go get golang.org/dl/go1.12.14
|
||||
- go1.12.14 download
|
||||
|
||||
# Install Go 1.14 beta1
|
||||
- go get golang.org/dl/go1.14beta1
|
||||
- go1.14beta1 download
|
||||
|
||||
# Make the working directory
|
||||
- mkdir /tmp/work
|
||||
- cd /tmp/work
|
||||
@ -44,7 +48,7 @@ install:
|
||||
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then go mod edit -replace=github.com/hajimehoshi/ebiten=./ebiten; fi
|
||||
|
||||
# wasmbrowsertest
|
||||
- GO111MODULE=off go get github.com/agnivade/wasmbrowsertest
|
||||
- GO111MODULE=off go1.14beta1 get github.com/agnivade/wasmbrowsertest
|
||||
- mv $GOPATH/bin/wasmbrowsertest $GOPATH/bin/go_js_wasm_exec
|
||||
|
||||
# GopherJS
|
||||
@ -85,7 +89,7 @@ script:
|
||||
|
||||
# go test
|
||||
- go test -v github.com/hajimehoshi/ebiten/...
|
||||
- GOOS=js GOARCH=wasm go test -v github.com/hajimehoshi/ebiten/...
|
||||
- GOOS=js GOARCH=wasm go1.14beta1 test -v github.com/hajimehoshi/ebiten/...
|
||||
|
||||
# GopherJS
|
||||
- GO111MODULE=off go1.12.14 run github.com/gopherjs/gopherjs build --tags=example -v github.com/hajimehoshi/ebiten/examples/blocks
|
||||
|
Loading…
Reference in New Issue
Block a user