-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (49 loc) · 1.5 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
name: CI Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- preset: gcc-release
os: ubuntu-latest
- preset: clang-release
os: ubuntu-latest
- preset: gcc-10-release
os: ubuntu-latest
- preset: macos-release
os: macos-latest
- preset: win64-release
os: windows-latest
- preset: win32-release
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main"
sudo apt-get update
sudo apt-get install -y g++-12 g++-10 clang-16
- uses: ilammy/msvc-dev-cmd@v1
if: matrix.os == 'windows-latest'
- uses: MarkusJx/[email protected]
id: install-boost
with:
boost_version: 1.86.0
- name: Configure
run: cmake --preset ${{ matrix.preset }} -DCMAKE_PREFIX_PATH=${{ steps.install-boost.outputs.BOOST_ROOT }}
- name: Build
run: cmake --build build/${{ matrix.preset }} -j8
- name: Run tests
run: |
ctest --output-on-failure --no-tests=error --test-dir build/${{ matrix.preset }} -j8