From 456cd7d7bd6fec986ad7b7443ddf719fbcb95486 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Fri, 1 Dec 2023 08:42:53 +0800 Subject: [PATCH] ci: fix use of ccache --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03a346a..7eb2b6e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -174,6 +174,14 @@ jobs: sudo /usr/local/bin/pip install cmake - uses: actions/checkout@v3 + - name: Cache ccache + uses: actions/cache@v2 + if: env.B2_USE_CCACHE + with: + path: ~/.ccache + key: ${{matrix.os}}-${{matrix.container}}-${{matrix.compiler}}-${{github.sha}} + restore-keys: ${{matrix.os}}-${{matrix.container}}-${{matrix.compiler}}- + - name: Install packages if: matrix.install run: |