-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (34 loc) · 1.15 KB
/
cmake-single-platform.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
name: Build and Tests
on:
push:
branches:
- "Build_Test_Deployment"
- "master"
pull_request:
branches: [ "master" , "Build_Test_Deployment"]
env:
BUILD_TYPE: RelWithDebInfo
BUILD_TESTS : ON
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Axomae dependencies
run: |
cd ${{github.workspace}} && ./scripts/update_deps.sh
- name: Install OpenGL and GLEW
run: |
sudo apt-get install -y libgl1-mesa-dev libglew-dev
- name: Configure CMake
run: cmake -B ${{github.workspace}}/../build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DAXOMAE_BUILD_TESTS:BOOL=${{env.BUILD_TESTS}} -DAXOMAE_LUT_MEDIUMP:BOOL=ON -DAXOMAE_FROMSOURCE_QT_BUILD=ON
- name: Build
run: cmake --build ${{github.workspace}}/../build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/../build
run: ctest -C ${{env.BUILD_TYPE}}
#####################################################
# For debugging , opens an ssh cli
# - name: Setup tmate session
# if: success() || failure()
# uses: mxschmitt/action-tmate@v3