Skip to content

Commit 1ffc966

Browse files
committed
build everything without tracing in CI
1 parent 15a5eab commit 1ffc966

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.github/workflows/ubuntu.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
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

@@ -30,7 +37,11 @@ jobs:
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

.github/workflows/windows.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ jobs:
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

@@ -26,7 +32,13 @@ jobs:
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

0 commit comments

Comments
 (0)