ebiten/.github/workflows/steam.sh

14 lines
338 B
Bash
Raw Normal View History

export PATH=$PATH:/usr/local/go/bin
export CGO_CFLAGS=-std=gnu99
export DISPLAY=:99.0
# Install Go
curl -L --output ${GO_FILENAME} https://golang.org/dl/${GO_FILENAME}
rm -rf /usr/local/go && tar -C /usr/local -xzf ${GO_FILENAME}
# Run X
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
# Run the tests
go test -tags=example -v ./...