-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.5 KB
/
cmake.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
name: commit
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
BUILD_TYPE: RELEASE
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest
cmake: /usr/bin/env CC=gcc-14 CXX=g++-14 cmake
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Linux dependencies
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt -q=2 update
sudo apt install g++-14 gdb ninja-build libbenchmark-dev
sudo apt -q install libgl1-mesa-dri libgl-dev libglx-dev xorg-dev xvfb libopencv-dev
sudo apt -q install libsdl2-dev
if: matrix.os == 'ubuntu-latest'
- name: Configure
run: ${{matrix.cmake}} -G "Ninja" -S ${{github.workspace}}/ -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: ${{matrix.cmake}} --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target install
- name: Test
run: |
cd ${{github.workspace}}/build/install
export MAGNUM_LOG=default
export LD_LIBRARY_PATH="$PWD/lib" ASAN_OPTIONS="detect_leaks=0:abort_on_error=1"
set -e
xvfb-run gdb -q -batch -x ../../.github/gdbscript.py --args bin/floormat-test
xvfb-run gdb -q -batch -x ../../.github/gdbscript.py --args bin/floormat-benchmark
if: matrix.os == 'ubuntu-24.04'