-
Notifications
You must be signed in to change notification settings - Fork 57
31 lines (30 loc) · 1.17 KB
/
test-linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: SplashKit Core Linux
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
DISPLAY: :99
SDL_VIDEODRIVER: x11
steps:
- name: install-dependencies
run: |
cd /usr/share/fonts
find .
sudo apt-get -qq update
sudo apt-get install -y libegl1-mesa-dev libgles2-mesa-dev
sudo apt-get install -y -qq xvfb
sudo apt-get install -y build-essential cmake libpng-dev libcurl4-openssl-dev libsdl2-dev libsdl2-mixer-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-net-dev libsdl2-ttf-dev libmikmod-dev libbz2-dev libflac-dev libvorbis-dev libwebp-dev
- name: setup display
run: /sbin/start-stop-daemon --start --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 800x600x24 -ac +extension GLX
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: build
working-directory: ./projects/cmake
run: |
CC=/usr/bin/gcc CXX=/usr/bin/g++ cmake .
CC=/usr/bin/gcc CXX=/usr/bin/g++ make -j 2
- name: execute
working-directory: ./bin
run: ./skunit_tests