From aecf64fc033114d35bf709fd4b92fb9b46aba6de Mon Sep 17 00:00:00 2001 From: badaix Date: Sat, 21 Dec 2024 22:09:21 +0100 Subject: [PATCH] Cache by build-type --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b54fec0a..ed78ee98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -258,8 +258,8 @@ jobs: with: # TODO: use environment variable $HOME/.ccache path: /home/runner/.ccache - key: ${{ runner.os }}-${{ matrix.compiler }}-ccache-${{ github.sha }} - restore-keys: ${{ runner.os }}-${{ matrix.compiler }}-ccache- + key: ${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.build_type }}-ccache-${{ github.sha }} + restore-keys: ${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.build_type }}-ccache- #- name: ccache dump config # run: ccache -p - name: configure @@ -352,8 +352,8 @@ jobs: uses: actions/cache@v4 with: path: /Users/runner/Library/Caches/ccache - key: ${{ runner.os }}-${{ matrix.xcode }}-ccache-${{ github.sha }} - restore-keys: ${{ runner.os }}-${{ matrix.xcode }}-ccache- + key: ${{ runner.os }}-${{ matrix.xcode }}-${{ matrix.build_type }}-ccache-${{ github.sha }} + restore-keys: ${{ runner.os }}-${{ matrix.xcode }}-${{ matrix.build_type }}-ccache- - name: configure run: | cmake -S . -B build \