-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (78 loc) · 2.44 KB
/
ci.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Langulus::Fractalloc CI
on: push
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, windows-latest]
build: [Debug, Release]
arch: [x86, x64]
managed: [ON, OFF]
cxx: [g++, clang++, ClangCl, v143]
exclude:
- os: ubuntu-22.04
cxx: v143
- os: ubuntu-22.04
cxx: ClangCl
- os: windows-latest
cxx: g++
- os: windows-latest
cxx: clang++
include:
- os: ubuntu-22.04
arch: x86
cmake_args: "-DCMAKE_CXX_FLAGS=-m32"
- os: ubuntu-22.04
arch: x64
cmake_args: "-DCMAKE_CXX_FLAGS=-m64"
- os: windows-latest
arch: x86
cmake_args: "-G \"Visual Studio 17 2022\" -A Win32"
- os: windows-latest
arch: x64
cmake_args: "-G \"Visual Studio 17 2022\" -A x64"
- managed: OFF
suffix: ''
- managed: ON
suffix: '-managed'
name: "${{matrix.os}}-${{matrix.cxx}}-${{matrix.build}}-${{matrix.arch}}${{matrix.suffix}}"
runs-on: ${{matrix.os}}
steps:
- name: Dispatch Trigger
if: ${{ startsWith(github.event.action, 'Dependency') }}
run: >
echo "Triggered by dependency: ${{github.event.client_payload.cause}}"
- name: Clone
uses: actions/checkout@v3
- if: matrix.os == 'ubuntu-22.04' && matrix.arch == 'x86'
name: Prepare Linux for cross-compilation
run: |
sudo apt update
sudo apt install g++-multilib
- if: matrix.os == 'ubuntu-22.04'
name: Configure (Linux)
run: >
cmake
-DCMAKE_CXX_COMPILER=${{matrix.cxx}}
-S .
-B out
${{matrix.cmake_args}}
-DCMAKE_BUILD_TYPE=${{matrix.build}}
-DLANGULUS_FEATURE_MANAGED_REFLECTION=${{matrix.managed}}
- if: matrix.os == 'windows-latest'
name: Configure (Windows)
run: >
cmake
-S .
-B out
${{matrix.cmake_args}} -T "${{matrix.cxx}}"
-DCMAKE_BUILD_TYPE=${{matrix.build}}
-DLANGULUS_FEATURE_MANAGED_REFLECTION=${{matrix.managed}}
- name: Build
run: cmake --build out --config ${{matrix.build}}
- name: Test
run: cd out && ctest -V -C ${{matrix.build}}