diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 0f6fe84..d8fd158 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -21,13 +21,17 @@ jobs: with: submodules: true + - name: Get time + run: | + date +'%Y-%m' > snapshot.txt + - name: Cache for cccahe uses: actions/cache@v2 with: path: /home/runner/.ccache - key: ${{ runner.os }}-ccache + key: ${{ runner.os }}-ccache-${{ hashFiles('**/snapshot.txt') }} restore-keys: | - ${{ runner.os }}-ccache + ${{ runner.os }}-ccache- - name: Install dependencies for Linux if: runner.os == 'Linux'