File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,8 @@ jobs:
132
132
run : |
133
133
set -o pipefail
134
134
mkdir -p "$INSTALL_DIR"
135
- cmake --preset ${{ matrix.config_preset }} -DMETHANE_VERSION_MAJOR=${{ env.product_ver_major }} -DMETHANE_VERSION_MINOR=${{ env.product_ver_minor }} -DMETHANE_VERSION_PATCH=${{ env.product_ver_patch }} -DMETHANE_VERSION_BUILD=${{ env.product_ver_build }} 2>&1 | tee $BUILD_LOG_FILE
135
+ # set METHANE_VERSION_BUILD=0 to benefit from SonarCloud analysis cache, build version invalidates cache at each run
136
+ cmake --preset ${{ matrix.config_preset }} -DMETHANE_VERSION_MAJOR=${{ env.product_ver_major }} -DMETHANE_VERSION_MINOR=${{ env.product_ver_minor }} -DMETHANE_VERSION_PATCH=${{ env.product_ver_patch }} -DMETHANE_VERSION_BUILD=0 2>&1 | tee $BUILD_LOG_FILE
136
137
ls -la "$BUILD_DIR" 2>&1 | tee -a $BUILD_LOG_FILE
137
138
if [ -f $COMPILE_COMMANDS_FILE ]; then
138
139
cp "$COMPILE_COMMANDS_FILE" "$INSTALL_DIR"
You can’t perform that action at this time.
0 commit comments