-
Notifications
You must be signed in to change notification settings - Fork 8
88 lines (69 loc) · 2.08 KB
/
CI.yaml
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
name: ALP CI
run-name: ${{ github.actor }} is running the ALP CI
on: push
jobs:
# Format Check Job
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Code Format
run: echo "TODO: Add code formatting check (e.g., clang-format)"
# Build and Test Job
build-and-test:
needs: check-format
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: true
matrix:
platform: [ubuntu-latest, macos-latest]
build_type: [Debug, Release]
cxx: [clang++]
steps:
- uses: actions/checkout@v4
- name: Set Up CMake
run: mkdir build
- name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
env:
CXX: ${{ matrix.cxx }}
- name: Build Project
run: cmake --build build -j 16
- name: Run Tests
working-directory: build
run: ctest --output-on-failure -j 16
# Benchmarking Job
build-benchmark:
needs: build-and-test
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: true
matrix:
platform: [ubuntu-latest, macos-latest]
build_type: [Release]
cxx: [clang++]
steps:
- uses: actions/checkout@v4
- name: Set Up CMake
run: mkdir build
- name: Configure CMake with Benchmarking
run: cmake -S . -B build -DALP_BUILD_BENCHMARKING=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
env:
CXX: ${{ matrix.cxx }}
- name: Build Project
run: cmake --build build -j 16
# Publication Job
build-publication:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Up CMake
run: mkdir build
- name: Configure CMake with Publication
run: cmake -S . -B build -DALP_BUILD_PUBLICATION=ON -DCMAKE_BUILD_TYPE=Release
- name: Build Publication
run: cmake --build build -j 16
- name: Run Publication Tests
working-directory: build
run: ./publication/run_all_publication_tests