-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 876 Bytes
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
name: linux
on: [push]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Setup Repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install system libraries
run: |
sudo apt update
sudo apt install -y libxinerama-dev libxcursor-dev libxi-dev libgl-dev
- name: Build
run: |
threads=`nproc`
mkdir build
cd build
cmake ..
make -j $threads
- name: Build Tests
working-directory: tests
run: |
threads=`nproc`
mkdir build
cd build
cmake ..
make -j $threads
- name: Test
working-directory: tests
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: |
cd build
ctest --verbose