File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed
Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 1818 compiler_version : [g++-10, g++-11]
1919 cxx_std : [17, 20]
2020 os : [ubuntu-22.04]
21+ disable_trace : [false]
22+ include :
23+ # Test with trace disabled
24+ - compiler_version : g++-11
25+ cxx_std : 20
26+ os : ubuntu-22.04
27+ disable_trace : true
2128
2229 runs-on : ${{ matrix.os }}
2330
3037 run : |
3138 mkdir build
3239 cd build
33- cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler_version }} -DCXX_STD=${{ matrix.cxx_std }}
40+ if [ "${{ matrix.disable_trace }}" = "true" ]; then
41+ cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler_version }} -DCXX_STD=${{ matrix.cxx_std }} -DCMAKE_CXX_FLAGS="-DBOOST_PARSER_DISABLE_TRACE"
42+ else
43+ cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler_version }} -DCXX_STD=${{ matrix.cxx_std }}
44+ fi
3445
3546 - name : Build
3647 run : cd build ; make -j4
Original file line number Diff line number Diff line change 1717 matrix :
1818 cxx_std : [17, 20, 23]
1919 os : [windows-2022]
20+ disable_trace : [false]
21+ include :
22+ # Test with trace disabled
23+ - cxx_std : 20
24+ os : windows-2022
25+ disable_trace : true
2026
2127 runs-on : ${{ matrix.os }}
2228
2632 - name : Configure CMake
2733 # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
2834 # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
29- run : cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCXX_STD=${{ matrix.cxx_std }}
35+ run : |
36+ if ("${{ matrix.disable_trace }}" -eq "true") {
37+ cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCXX_STD=${{ matrix.cxx_std }} -DCMAKE_CXX_FLAGS="/DBOOST_PARSER_DISABLE_TRACE"
38+ } else {
39+ cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCXX_STD=${{ matrix.cxx_std }}
40+ }
41+ shell : pwsh
3042
3143 - name : Build
3244 working-directory : build
You can’t perform that action at this time.
0 commit comments