File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,15 @@ runs:
281281 CMAKE_EXTRA_ARGS="$CMAKE_EXTRA_ARGS -DGEODE_BUNDLE_PDB=ON"
282282 fi
283283 cmake -B build -DCMAKE_BUILD_TYPE=${{ inputs.build-config }} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DGEODE_CODEGEN_CMAKE_ARGS="-DCMAKE_C_COMPILER=clang;-DCMAKE_CXX_COMPILER=clang++;-G Ninja" -G Ninja $CMAKE_EXTRA_ARGS -DGEODE_DONT_INSTALL_MODS=ON -DGEODE_TARGET_PLATFORM=${{ steps.platform.outputs.target }} ${{ inputs.configure-args }}
284- cmake --build build --config ${{ inputs.build-config }} ${{ inputs.build-args }}
284+
285+ CMAKE_EXTRA_BUILD_ARGS=""
286+ CCACHE_VARIANT="${{ inputs.ccache-variant }}"
287+ if [ -n "$CCACHE_VARIANT" ]; then
288+ CCACHE_PATH="$(which "$CCACHE_VARIANT")"
289+ CMAKE_EXTRA_BUILD_ARGS="$CMAKE_EXTRA_BUILD_ARGS -DCMAKE_C_COMPILER_LAUNCHER=${CCACHE_PATH} -DCMAKE_CXX_COMPILER_LAUNCHER=${CCACHE_PATH}"
290+ fi
291+
292+ cmake --build build --config ${{ inputs.build-config }} ${{ inputs.build-args }} $CMAKE_EXTRA_BUILD_ARGS
285293
286294 mkdir "${{ github.workspace }}/output"
287295
You can’t perform that action at this time.
0 commit comments