-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.17 KB
/
ci.yml
File metadata and controls
47 lines (39 loc) · 1.17 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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install libcurl (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
- name: Install libcurl (macOS)
if: matrix.os == 'macos-latest'
run: brew install curl
- name: Configure
run: |
mkdir -p build
cd build
cmake .. -DAUDD_BUILD_TESTS=ON -DAUDD_BUILD_EXAMPLES=ON
- name: Build
run: cmake --build build -j
- name: Test
run: ctest --test-dir build --output-on-failure
build-cxx20:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
- run: |
mkdir -p build && cd build
cmake .. -DAUDD_CXX20=ON -DAUDD_BUILD_TESTS=ON -DAUDD_BUILD_EXAMPLES=ON
- run: cmake --build build -j
- run: ctest --test-dir build --output-on-failure