|
1 | | -name: CI |
| 1 | +name: ALP CI |
2 | 2 | run-name: ${{ github.actor }} is running the ALP CI |
3 | 3 |
|
4 | 4 | on: push |
5 | 5 |
|
6 | 6 | jobs: |
| 7 | + # Format Check Job |
7 | 8 | check-format: |
8 | 9 | runs-on: ubuntu-latest |
9 | | - steps: |
10 | | - - name: Echo Build |
11 | | - run: echo "todo" |
12 | | - |
13 | | - build: |
14 | | - needs: |
15 | | - - check-format |
16 | | - runs-on: ${{ matrix.platform }} |
17 | | - strategy: |
18 | | - fail-fast: true |
19 | | - matrix: |
20 | | - platform: [ubuntu-latest, macos-latest] |
21 | | - BUILD_TYPE: [Debug, Release] |
22 | | - cxx: [clang++] |
23 | | - |
24 | 10 | steps: |
25 | 11 | - uses: actions/checkout@v4 |
26 | | - - uses: actions/setup-node@v4 |
27 | | - |
28 | | - - name: Make Build Directory |
29 | | - run: mkdir ${{ github.workspace }}/build |
30 | | - |
31 | | - - name: Configure CMake |
32 | | - run: cmake -S ${{ github.workspace }} -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} |
33 | | - env: |
34 | | - CXX: ${{ matrix.cxx }} |
35 | 12 |
|
36 | | - - name: Build |
37 | | - run: cmake --build ${{ github.workspace }}/build -j 16 |
| 13 | + - name: Check Code Format |
| 14 | + run: echo "TODO: Add code formatting check (e.g., clang-format)" |
38 | 15 |
|
39 | | - test: |
40 | | - needs: |
41 | | - - build |
| 16 | + # Build and Test Job |
| 17 | + build-and-test: |
| 18 | + needs: check-format |
42 | 19 | runs-on: ${{ matrix.platform }} |
43 | 20 | strategy: |
44 | 21 | fail-fast: true |
45 | 22 | matrix: |
46 | 23 | platform: [ubuntu-latest, macos-latest] |
47 | | - BUILD_TYPE: [Debug, Release] |
| 24 | + build_type: [Debug, Release] |
48 | 25 | cxx: [clang++] |
49 | 26 |
|
50 | 27 | steps: |
51 | 28 | - uses: actions/checkout@v4 |
52 | | - - uses: actions/setup-node@v4 |
53 | 29 |
|
54 | | - - name: Make Build Directory |
55 | | - run: mkdir ${{ github.workspace }}/build |
| 30 | + - name: Set Up CMake |
| 31 | + run: mkdir build |
56 | 32 |
|
57 | 33 | - name: Configure CMake |
58 | | - run: cmake -DALP_BUILD_TESTING=ON -DALP_ENABLE_VERBOSE_OUTPUT=ON -S ${{ github.workspace }} -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} |
| 34 | + run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} |
59 | 35 | env: |
60 | 36 | CXX: ${{ matrix.cxx }} |
61 | 37 |
|
62 | | - - name: Build |
63 | | - run: cmake --build ${{ github.workspace }}/build -j 16 |
| 38 | + - name: Build Project |
| 39 | + run: cmake --build build -j 16 |
64 | 40 |
|
65 | | - - name: Test |
66 | | - working-directory: ${{ github.workspace }}/build |
67 | | - run: ctest -j 4 --rerun-failed --output-on-failure |
| 41 | + - name: Run Tests |
| 42 | + working-directory: build |
| 43 | + run: ctest --output-on-failure -j 16 |
68 | 44 |
|
69 | | - build_benchmark: |
70 | | - needs: |
71 | | - - test |
| 45 | + # Benchmarking Job |
| 46 | + build-benchmark: |
| 47 | + needs: build-and-test |
72 | 48 | runs-on: ${{ matrix.platform }} |
73 | 49 | strategy: |
74 | 50 | fail-fast: true |
75 | 51 | matrix: |
76 | 52 | platform: [ubuntu-latest, macos-latest] |
77 | | - BUILD_TYPE: [Release] |
| 53 | + build_type: [Release] |
78 | 54 | cxx: [clang++] |
79 | 55 |
|
80 | 56 | steps: |
81 | 57 | - uses: actions/checkout@v4 |
82 | | - - uses: actions/setup-node@v4 |
83 | 58 |
|
84 | | - - name: Make Build Directory |
85 | | - run: mkdir ${{ github.workspace }}/build |
| 59 | + - name: Set Up CMake |
| 60 | + run: mkdir build |
86 | 61 |
|
87 | | - - name: Configure CMake |
88 | | - run: cmake -DALP_BUILD_BENCHMARKING=ON -S ${{ github.workspace }} -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} |
| 62 | + - name: Configure CMake with Benchmarking |
| 63 | + run: cmake -S . -B build -DALP_BUILD_BENCHMARKING=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} |
89 | 64 | env: |
90 | 65 | CXX: ${{ matrix.cxx }} |
91 | 66 |
|
92 | | - - name: Build |
93 | | - run: cmake --build ${{ github.workspace }}/build -j 16 |
94 | | - |
95 | | - - name: Test |
96 | | - working-directory: ${{ github.workspace }}/build |
97 | | - run: ctest -j 4 |
98 | | - |
99 | | - build_full_dataset: |
100 | | - needs: |
101 | | - - test |
102 | | - runs-on: ${{ matrix.platform }} |
103 | | - strategy: |
104 | | - fail-fast: true |
105 | | - matrix: |
106 | | - platform: [ubuntu-latest, macos-latest] |
107 | | - BUILD_TYPE: [Release] |
108 | | - cxx: [clang++] |
| 67 | + - name: Build Project |
| 68 | + run: cmake --build build -j 16 |
109 | 69 |
|
| 70 | + # Publication Job |
| 71 | + build-publication: |
| 72 | + needs: build-and-test |
| 73 | + runs-on: ubuntu-latest |
110 | 74 | steps: |
111 | 75 | - uses: actions/checkout@v4 |
112 | | - - uses: actions/setup-node@v4 |
113 | 76 |
|
114 | | - - name: Make Build Directory |
115 | | - run: mkdir ${{ github.workspace }}/build |
| 77 | + - name: Set Up CMake |
| 78 | + run: mkdir build |
116 | 79 |
|
117 | | - - name: Configure CMake |
118 | | - run: cmake -DALP_BUILD_BENCHMARKING=ON -S ${{ github.workspace }} -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} |
119 | | - env: |
120 | | - CXX: ${{ matrix.cxx }} |
| 80 | + - name: Configure CMake with Publication |
| 81 | + run: cmake -S . -B build -DALP_BUILD_PUBLICATION=ON -DCMAKE_BUILD_TYPE=Release |
| 82 | + |
| 83 | + - name: Build Publication |
| 84 | + run: cmake --build build -j 16 |
121 | 85 |
|
122 | | - - name: Build |
123 | | - run: cmake --build ${{ github.workspace }}/build -j 16 |
| 86 | + - name: Run Publication Tests |
| 87 | + working-directory: build |
| 88 | + run: ./publication/run_all_publication_tests |
0 commit comments