File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed
Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,33 @@ jobs:
2828 sudo apt-get install -y gcc-11 g++-11
2929 echo "CC=gcc-11" >> $GITHUB_ENV
3030 echo "CXX=g++-11" >> $GITHUB_ENV
31- - name : Build-Release
32- shell : bash
31+ - name : Build-Windows
32+ if : startsWith(matrix.os, 'windows')
3333 run : |
34+ mkdir build
35+ cd build
36+ cmake .. -DCMAKE_USER_MAKE_RULES_OVERRIDE="${{ github.workspace }}/cmake/flags_override.cmake"
37+ cmake --build . --config Release
38+ ctest -V -C Release
39+ cmake --install . --config Release --prefix ${{ github.workspace }}/artifact/
40+ - name : Build-Linux
41+ if : startsWith(matrix.os, 'ubuntu')
42+ run : |
43+ mkdir build
44+ cd build
45+ cmake ..
46+ cmake --build . --config Release
47+ ctest -V -C Release
48+ cmake --install . --config Release --prefix ${{ github.workspace }}/artifact/
49+ - name : Build-macosx
50+ if : startsWith(matrix.os, 'macos')
51+ run : |
3452 mkdir build
3553 cd build
3654 if [[ "${{ matrix.platform }}" = darwin-arm64 ]]; then
3755 cmake .. -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
3856 else
39- cmake .. -DCMAKE_USER_MAKE_RULES_OVERRIDE="${{ github.workspace }}/cmake/flags_override.cmake"
57+ cmake ..
4058 fi
4159 cmake --build . --config Release
4260 ctest -V -C Release
You can’t perform that action at this time.
0 commit comments