-
-
Notifications
You must be signed in to change notification settings - Fork 71
60 lines (47 loc) · 1.38 KB
/
ci_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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: CI Linux
# Trigger this workflow on push or pull request
on: [push, pull_request]
jobs:
build:
name: Build and test (ubuntu-20.04)
runs-on: ubuntu-20.04
env:
CXXFLAGS: -std=c++2a
LDFLAGS: -L/usr/local/lib
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ninja-build libgl1-mesa-dev libgl-dev libx11-dev libxrandr-dev libudev-dev libopenal-dev libvorbis-dev libflac-dev libxcursor-dev
- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ubuntu-20.04-RELEASE
- name: CMake configure
run: |
cd build
export LD_RUN_PATH="/opt/gcc-latest/lib64"
cmake -GNinja -DCMAKE_BUILD_TYPE=RELEASE -DSSVOH_HEADLESS_TESTS=1 ..
- name: Build
run: ninja -C build
- name: Copy artifacts
run: |
cp build/SSVOpenHexagon build/OHWorkshopUploader _RELEASE
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: OpenHexagon-Linux
path: _RELEASE
- name: Run tests
run: |
mkdir -p build/test
cp -R _RELEASE/Packs .
cp -R _RELEASE/Packs build
cp -R _RELEASE/Packs build/test
ninja -C build check
- name: Check ldd
run: |
ldd build/test/test.Replay.t