@@ -3,61 +3,121 @@ run-name: ${{ github.actor }} is running the ALP CI
33
44on : push
55
6- env :
7- BUILD_DIR : ${{ github.workspace }}/build
8- PARALLEL_JOBS : 16
9-
10- strategy :
11- matrix :
12- platform : [ ubuntu-latest, macos-latest ]
13- BUILD_TYPE : [ Debug, Release ]
14- cxx : [ clang++ ]
15-
166jobs :
177 check-format :
188 runs-on : ubuntu-latest
199 steps :
20- - name : Check Code Format
21- run : echo "Format check TODO "
10+ - name : Echo Build
11+ run : echo "todo "
2212
2313 build :
24- needs : check-format
14+ needs :
15+ - check-format
2516 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+
2624 steps :
2725 - 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+
2836 - name : Build
29- run : |
30- mkdir -p ${{ env.BUILD_DIR }}
31- cmake -S . -B ${{ env.BUILD_DIR }} -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }}
32- cmake --build ${{ env.BUILD_DIR }} -j ${{ env.PARALLEL_JOBS }}
37+ run : cmake --build ${{ github.workspace }}/build -j 16
3338
3439 test :
35- needs : build
40+ needs :
41+ - build
3642 runs-on : ${{ matrix.platform }}
43+ strategy :
44+ fail-fast : true
45+ matrix :
46+ platform : [ubuntu-latest, macos-latest]
47+ BUILD_TYPE : [Debug, Release]
48+ cxx : [clang++]
49+
3750 steps :
3851 - uses : actions/checkout@v4
39- - name : Run Tests
40- run : |
41- ctest -j ${{ env.PARALLEL_JOBS }} --output-on-failure --rerun-failed
52+ - uses : actions/setup-node@v4
53+
54+ - name : Make Build Directory
55+ run : mkdir ${{ github.workspace }}/build
56+
57+ - 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 }}
59+ env :
60+ CXX : ${{ matrix.cxx }}
61+
62+ - name : Build
63+ run : cmake --build ${{ github.workspace }}/build -j 16
64+
65+ - name : Test
66+ working-directory : ${{ github.workspace }}/build
67+ run : ctest -j 4 --rerun-failed --output-on-failure
4268
4369 build_benchmark :
44- needs : test
70+ needs :
71+ - test
4572 runs-on : ${{ matrix.platform }}
73+ strategy :
74+ fail-fast : true
75+ matrix :
76+ platform : [ubuntu-latest, macos-latest]
77+ BUILD_TYPE : [Release]
78+ cxx : [clang++]
79+
4680 steps :
4781 - uses : actions/checkout@v4
48- - name : Configure and Build Benchmarks
49- run : |
50- mkdir -p ${{ env.BUILD_DIR }}
51- cmake -S . -B ${{ env.BUILD_DIR }} -DALP_BUILD_BENCHMARKING=ON
52- cmake --build ${{ env.BUILD_DIR }} -j ${{ env.PARALLEL_JOBS }}
82+ - uses : actions/setup-node@v4
83+
84+ - name : Make Build Directory
85+ run : mkdir ${{ github.workspace }}/build
86+
87+ - name : Configure CMake
88+ run : cmake -DALP_BUILD_BENCHMARKING=ON -S ${{ github.workspace }} -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }}
89+ env :
90+ CXX : ${{ matrix.cxx }}
91+
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
5398
5499 build_full_dataset :
55- needs : test
100+ needs :
101+ - test
56102 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++]
109+
57110 steps :
58111 - uses : actions/checkout@v4
59- - name : Build Full Dataset
60- run : |
61- mkdir -p ${{ env.BUILD_DIR }}
62- cmake -S . -B ${{ env.BUILD_DIR }} -DALP_BUILD_BENCHMARKING=ON
63- cmake --build ${{ env.BUILD_DIR }} -j ${{ env.PARALLEL_JOBS }}
112+ - uses : actions/setup-node@v4
113+
114+ - name : Make Build Directory
115+ run : mkdir ${{ github.workspace }}/build
116+
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 }}
121+
122+ - name : Build
123+ run : cmake --build ${{ github.workspace }}/build -j 16
0 commit comments