-
Notifications
You must be signed in to change notification settings - Fork 17
48 lines (38 loc) · 1.35 KB
/
main.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
name: CI Build
# Triggers on push and branches on the master
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
all:
runs-on: [self-hosted, Linux]
strategy:
fail-fast: false
matrix:
build_type : [ Debug, Release ]
shared_type : [ OFF, ON ]
profiling : [ OFF, ON ]
name: "${{matrix.build_type}} S=${{matrix.shared_type}} P=${{matrix.profiling}}"
steps:
- uses: actions/checkout@v4
- name: Setup Build Environment ${{ runner.os }}
id: setup
run: .github/CI/setup.sh ${{matrix.build_type}} ${{matrix.shared_type}} ${{matrix.profiling}}
- name: Configure CMake
id: configure
timeout-minutes: 10
run: .github/CI/configure.sh ${{matrix.build_type}} ${{matrix.shared_type}} ${{matrix.profiling}}
- name: Build
run: .github/CI/build.sh ${{matrix.build_type}} ${{matrix.shared_type}} ${{matrix.profiling}}
- name: Install
run: .github/CI/install.sh ${{matrix.build_type}} ${{matrix.shared_type}} ${{matrix.profiling}}
- name: Test
run: .github/CI/test.sh ${{matrix.build_type}} ${{matrix.shared_type}} ${{matrix.profiling}}
- name: Save Artifact
if: failure()
uses: actions/upload-artifact@v3
with:
name: CMake-error-log
path: ${{ env.BUILD_DIRECTORY }}/CMakeFiles/CMakeError.log