-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 843 Bytes
/
CI.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
32
33
34
name: Debug build
on: push
jobs:
build-on-linux-debug:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install tools
run: |
sudo sed -i 's|http://azure.archive.ubuntu.com|http://ubuntu.mirrors.ovh.net|g' /etc/apt/sources.list
sudo apt update
sudo apt install libboost-all-dev
sudo apt-get install libsfml-dev
- name: Configure CMake
run: |
mkdir build && cd build
cmake .. -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build .
- name: Tests
working-directory: ${{github.workspace}}/build/test
run: |
export DISPLAY=':99'
Xvfb :99 -ac -screen 0 1280x1024x24 &
ctest --verbose --timeout 300