Skip to content

Commit

Permalink
Add sscache to Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
RainerKuemmerle committed Aug 12, 2023
1 parent 871e0e8 commit f55cc00
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:

release:

env:
SCCACHE_GHA_ENABLED: "true"

jobs:
build:
name: ${{ matrix.config.name }}
Expand All @@ -24,7 +27,6 @@ jobs:
generators: "Visual Studio 17 2022"
}


steps:
- uses: actions/checkout@v3
with:
Expand All @@ -36,6 +38,7 @@ jobs:
echo github.event.action: ${{github.event.action}}
echo github.event_name: ${{github.event_name}}
echo runner.os: ${{runner.os}}
Get-ChildItem Env:
- name: Install libraries with vcpkg
run: |
Expand All @@ -45,10 +48,18 @@ jobs:
run: |
type C:/vcpkg/packages/eigen3_x64-windows/debug/lib/pkgconfig/eigen3.pc
- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Print sccache env
run: |
echo sccache version
sccache -V
- name: Configure CMake
run: |
cmake --version
cmake -B ${{github.workspace}}/build -G "${{matrix.config.generators}}" -A x64 -DBUILD_UNITTESTS=ON -DG2O_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake
cmake -B ${{github.workspace}}/build -G "${{matrix.config.generators}}" -A x64 -DBUILD_UNITTESTS=ON -DG2O_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
- name: Build Introspection
run: |
Expand Down

0 comments on commit f55cc00

Please sign in to comment.