From eda15ae319df6bdd9e4f1db88128d32a80eb877e Mon Sep 17 00:00:00 2001 From: Roy Shilkrot Date: Sun, 24 Nov 2024 23:00:49 -0500 Subject: [PATCH] Replace actions/cache with ccache-action in GitHub Actions build workflow --- .github/workflows/build.yml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c666ac1..0a20868 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,12 +41,9 @@ jobs: - name: "Checkout" uses: "actions/checkout@v4" - - uses: actions/cache@v4 - id: ccache-cache - with: - path: ${{ github.workspace }}/.ccache - key: ccache-${{ runner.os }}-${{ hashFiles('**/CMakeLists.txt') }} - + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2 + - name: "Run build-macos.sh" run: "./build-macos.sh ${{ steps.get-version.outputs.version }}" env: @@ -84,11 +81,8 @@ jobs: - name: "Checkout" uses: "actions/checkout@v4" - - uses: actions/cache@v4 - id: ccache-cache - with: - path: ${{ github.workspace }}/.ccache - key: ccache-${{ runner.os }}-${{ hashFiles('**/CMakeLists.txt') }} + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2 - name: "Install Vulkan SDK" if: ${{ matrix.accel == 'vulkan' }} @@ -134,11 +128,8 @@ jobs: - name: "Checkout" uses: "actions/checkout@v4" - - uses: actions/cache@v4 - id: ccache-cache - with: - path: ${{ github.workspace }}/.ccache - key: ccache-${{ runner.os }}-${{ hashFiles('**/CMakeLists.txt') }} + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2 - name: Install CUDA Toolkit if: ${{ matrix.accel == 'cuda' }}