-
-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (39 loc) · 1.18 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
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
include:
- name: 'Ubuntu (Clang)'
os: ubuntu-24.04
cCompiler: 'clang'
cppCompiler: 'clang++'
- name: 'Ubuntu (GCC)'
os: ubuntu-latest
cCompiler: 'gcc'
cppCompiler: 'g++'
- name: 'Windows (Clang)'
os: windows-latest
cCompiler: 'clang-cl'
cppCompiler: 'clang-cl'
- name: 'Windows (MSVC)'
os: windows-latest
cCompiler: 'cl'
cppCompiler: 'cl'
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: lukka/get-cmake@latest
- uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: 215a2535590f1f63788ac9bd2ed58ad15e6afdff
- uses: lukka/run-cmake@v10
with:
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER=${{matrix.cCompiler}}', '-DCMAKE_CXX_COMPILER=${{matrix.cppCompiler}}']"
configurePreset: 'ninja-vcpkg'
buildPreset: 'ninja-vcpkg'
testPreset: 'ninja-vcpkg'