Skip to content

Commit

Permalink
ccache builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Vano committed May 3, 2024
1 parent 4dd4c6a commit b5df024
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: CMake
generate_sources: |
cmake {0} -DCMAKE_BUILD_TYPE=Debug -B build test
cmake {0} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache -B build test
build_godot_cpp_debug: |
cmake --build build --config Debug --target godot-cpp
Expand All @@ -51,7 +51,7 @@ jobs:
cmake --build build --config Debug
build_release: |
cmake {0} -DCMAKE_BUILD_TYPE=Release -DTARGET=TEMPLATE_RELEASE -B build_release test
cmake {0} -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DTARGET=TEMPLATE_RELEASE -B build_release test
cmake --build build_release --config Release
platforms:
Expand Down Expand Up @@ -214,6 +214,12 @@ jobs:
if: ${{ matrix.builder.name == 'CMake' }}
uses: ssrobins/install-cmake@v1

- name: Install ccache
if: ${{ matrix.builder.name == 'CMake' }}
uses: hendrikmuhs/[email protected]
with:
key: ${{ matrix.platforms.cache-name }}

- name: Install Ninja
if: ${{ matrix.builder.name == 'CMake' }}
uses: ashutoshvarma/setup-ninja@master
Expand Down

0 comments on commit b5df024

Please sign in to comment.