From 9df748acb399930d646a6157e31a971ae7f57471 Mon Sep 17 00:00:00 2001 From: neru Date: Fri, 19 Jun 2026 10:57:20 -0300 Subject: [PATCH] build: add cache --- .github/workflows/build.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ace420..ed993be 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,14 +48,23 @@ jobs: echo "EOF" } >> $GITHUB_OUTPUT - - name: Setup Tools Cache - id: tools-cache + - name: Cache CMake Binary + id: cmake-cache + uses: actions/cache@v4 + with: + path: cmake-4.3.4-linux-x86_64 + key: ${{ runner.os }}-cmake-4.3.4 + + - name: Cache FetchContent & ccache uses: actions/cache@v4 with: path: | - cmake-4.3.4-linux-x86_64 + build/_deps ccache - key: ${{ runner.os }}-tools-${{ hashFiles('**/CMakeLists.txt') }} + key: ${{ runner.os }}-deps-${{ hashFiles('**/CMakeLists.txt') }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-deps-${{ hashFiles('**/CMakeLists.txt') }}- + ${{ runner.os }}-deps- - name: Install tools run: |