From f55cc00ba1dabed325a43d77dcf424c712493842 Mon Sep 17 00:00:00 2001 From: Rainer Kuemmerle Date: Sat, 12 Aug 2023 17:57:09 +0200 Subject: [PATCH] Add sscache to Windows CI --- .github/workflows/windows.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 57c5b93c1..56a8fba17 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -8,6 +8,9 @@ on: release: +env: + SCCACHE_GHA_ENABLED: "true" + jobs: build: name: ${{ matrix.config.name }} @@ -24,7 +27,6 @@ jobs: generators: "Visual Studio 17 2022" } - steps: - uses: actions/checkout@v3 with: @@ -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: | @@ -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/sccache-action@v0.0.3 + + - 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: |