File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 66 - ' **.md'
77 - ' **.ipynb'
88 - ' myst.yml'
9+ push :
10+ # Runs on pushes targeting the develop branch
11+ branches : [develop]
912
1013# Cancels any in-progress workflow runs for the same PR when a new push is made,
1114# allowing the runner to become available more quickly for the latest changes.
2528 GTSAM_BUILD_UNSTABLE : ${{ matrix.build_unstable }}
2629 BOOST_VERSION : 1.72.0
2730 BOOST_EXE : boost_1_72_0-msvc-14.2
31+ SCCACHE_GHA_ENABLED : ON
2832
2933 strategy :
3034 fail-fast : true
9397 # Set the BOOST_ROOT variable
9498 echo "BOOST_ROOT=$BOOST_PATH" >> $env:GITHUB_ENV
9599
100+ - name : Install sccache
101+ if : matrix.build_type == 'Release'
102+ uses :
mozilla-actions/[email protected] 103+
96104 - name : Configuration
97105 shell : bash
98106 run : |
@@ -106,9 +114,12 @@ jobs:
106114 -DGTSAM_ALLOW_DEPRECATED_SINCE_V43=OFF \
107115 -DGTSAM_USE_BOOST_FEATURES=ON \
108116 -DGTSAM_ENABLE_BOOST_SERIALIZATION=ON \
117+ -DGTSAM_BUILD_WITH_PRECOMPILED_HEADERS=OFF \
109118 -DBOOST_ROOT="${BOOST_ROOT_UNIX}" \
110119 -DBOOST_INCLUDEDIR="${BOOST_ROOT_UNIX}/include" \
111- -DBOOST_LIBRARYDIR="${BOOST_ROOT_UNIX}/lib"
120+ -DBOOST_LIBRARYDIR="${BOOST_ROOT_UNIX}/lib" \
121+ -DCMAKE_C_COMPILER_LAUNCHER=sccache \
122+ -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
112123 else
113124 cmake -B build \
114125 -DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF \
Original file line number Diff line number Diff line change 5959 arch : x64
6060 toolset : 14.40
6161
62+ - name : Install sccache
63+ if : runner.os == 'Windows'
64+ uses :
mozilla-actions/[email protected] 65+
66+ - name : Use sccache
67+ if : runner.os == 'Windows'
68+ shell : bash
69+ run : |
70+ echo "SCCACHE_GHA_ENABLED=ON" >> "$GITHUB_ENV"
71+ echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> "$GITHUB_ENV"
72+ echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> "$GITHUB_ENV"
73+
6274 - name : cl version
6375 if : runner.os == 'Windows'
6476 shell : cmd
@@ -149,6 +161,7 @@ jobs:
149161 -DVCPKG_HOST_TRIPLET=${{ matrix.triplet }} \
150162 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
151163 -DGTSAM_BUILD_EXAMPLES_ALWAYS=ON \
164+ -DGTSAM_BUILD_WITH_PRECOMPILED_HEADERS=OFF \
152165 -DGTSAM_ROT3_EXPMAP=ON \
153166 -DGTSAM_POSE3_EXPMAP=ON \
154167 -DGTSAM_BUILD_PYTHON=ON \
You can’t perform that action at this time.
0 commit comments