-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (54 loc) · 1.66 KB
/
ci.yml
File metadata and controls
65 lines (54 loc) · 1.66 KB
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
compiler: g++-12
cxx: g++-12
- os: ubuntu-latest
compiler: clang-17
cxx: clang++-17
- os: macos-latest
compiler: clang
cxx: clang++
- os: windows-latest
compiler: msvc
cxx: cl
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / ${{ matrix.compiler }}
steps:
- uses: actions/checkout@v4
- name: Install GCC (Linux)
if: matrix.os == 'ubuntu-latest' && startsWith(matrix.compiler, 'g++')
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.compiler }}
- name: Install Clang (Linux)
if: matrix.os == 'ubuntu-latest' && startsWith(matrix.compiler, 'clang')
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.compiler }}
- name: Configure (Unix)
if: matrix.os != 'windows-latest'
env:
CXX: ${{ matrix.cxx }}
run: cmake -B build -DFREQUENCY_BUILD_TESTS=ON
- name: Configure (Windows)
if: matrix.os == 'windows-latest'
run: cmake -B build -DFREQUENCY_BUILD_TESTS=ON
- name: Build
run: cmake --build build --config Release
- name: Test (Unix)
if: matrix.os != 'windows-latest'
run: ctest --test-dir build --output-on-failure
- name: Test (Windows)
if: matrix.os == 'windows-latest'
run: ctest --test-dir build -C Release --output-on-failure