-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (80 loc) · 2.39 KB
/
build.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
89
90
91
92
93
94
95
96
name: Build
on: [push, pull_request]
jobs:
GCC:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
cxxstd: [20, 23]
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build gcc-12
- name: Build
run: >
./build.sh
-DCMAKE_CXX_STANDARD=${{matrix.cxxstd}}
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_C_COMPILER=gcc-12
-DCMAKE_CXX_COMPILER=g++-12
-Dpapilio_build_unit_test=1
-Dpapilio_build_example=1
-Dpapilio_c_interface=1
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest
Clang:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
compiler: [14, 15]
cxxstd: [20]
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build clang-${{matrix.compiler}}
- name: Build
run: >
./build.sh
-DCMAKE_CXX_STANDARD=${{matrix.cxxstd}}
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_C_COMPILER=clang-${{matrix.compiler}}
-DCMAKE_CXX_COMPILER=clang++-${{matrix.compiler}}
-Dpapilio_build_unit_test=1
-Dpapilio_build_example=1
-Dpapilio_c_interface=1
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest
MSVC:
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
cxxstd: [20, 23]
env:
VCPKG_BUILD_TYPE: release
VCPKG_DEFAULT_TRIPLET: x64-windows
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
- name: Build
run: >
./build.ps1
-DCMAKE_CXX_STANDARD=${{matrix.cxxstd}}
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake"
-Dpapilio_build_unit_test=1
-Dpapilio_build_example=1
-Dpapilio_c_interface=1
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest