-
Notifications
You must be signed in to change notification settings - Fork 138
79 lines (61 loc) · 1.78 KB
/
ci.yaml
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
name: CI Pipeline
on:
push:
branches: [ '**' ] # Run on all branches
pull_request:
branches: [ '**' ] # Run on all branches
jobs:
build-windows:
name: Build on Windows with Visual Studio 2022
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Configure CMake
run: |
cmake -B build -G "Visual Studio 17 2022" -A x64
- name: Build
run: |
cmake --build build --config Release
- name: Run Tests
working-directory: build
run: ctest -C Release --output-on-failure
build-ubuntu-gcc:
name: Build on Ubuntu with GCC-13
runs-on: ubuntu-latest
steps:
- name: Install GCC-13
run: |
sudo apt update
sudo apt install -y g++-13
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 90
- name: Checkout Repository
uses: actions/checkout@v4
- name: Configure CMake
run: |
cmake -B build -DCMAKE_CXX_COMPILER=g++-13
- name: Build
run: |
cmake --build build --config Release
- name: Run Tests
working-directory: build
run: ctest --output-on-failure
build-ubuntu-clang:
name: Build on Ubuntu with Latest Clang
runs-on: ubuntu-latest
steps:
- name: Install Latest Clang
run: |
sudo apt update
sudo apt install -y clang
- name: Checkout Repository
uses: actions/checkout@v4
- name: Configure CMake
run: |
cmake -B build -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: |
cmake --build build --config Release
- name: Run Tests
working-directory: build
run: ctest --output-on-failure