mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 19:58:54 +01:00
tmp
This commit is contained in:
parent
a1e522e838
commit
e7bf786665
40
.github/workflows/linux.yml
vendored
Normal file
40
.github/workflows/linux.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
name: linux
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
image: ['debian:latest', 'ubuntu:latest']
|
||||||
|
name: Test with ${{ matrix.image }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ${{ matrix.image }}
|
||||||
|
env:
|
||||||
|
DISPLAY: ':99.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: '1.17.x'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
if: ${{ matrix.image == 'debian:latest' || matrix.image == 'ubuntu:latest' }}
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y libasound2-dev libgl1-mesa-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev pkg-config
|
||||||
|
|
||||||
|
- name: Xvfb
|
||||||
|
run: |
|
||||||
|
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
||||||
|
|
||||||
|
- name: go test
|
||||||
|
run: |
|
||||||
|
go test -tags=example -v ./...
|
Loading…
Reference in New Issue
Block a user