From 20389ad84480987ff9dec43cb1c384619c1103e1 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 31 Dec 2025 13:16:36 -1000 Subject: [PATCH] ;workflows:binaries-linux-x64: add more caching --- .github/workflows/binaries-linux-x64.yml | 29 ++++++++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/.github/workflows/binaries-linux-x64.yml b/.github/workflows/binaries-linux-x64.yml index 2c3e3e71c..8c11261f8 100644 --- a/.github/workflows/binaries-linux-x64.yml +++ b/.github/workflows/binaries-linux-x64.yml @@ -41,14 +41,33 @@ jobs: restore-keys: | ${{ runner.os }}-x64-ghcup-${{ env.ghcid }} - - name: Cache - ~/.cabal - id: cabal + - name: Cache - ~/.cabal/store + id: cabal-store uses: actions/cache@v4 with: - path: ~/.cabal - key: ${{ runner.os }}-x64-cabal-${{ env.ghcid }}-${{ hashFiles('**.yaml') }} + path: ~/.cabal/store + key: ${{ runner.os }}-x64-cabal-store-${{ env.ghcid }}-${{ hashFiles('**.yaml') }} restore-keys: | - ${{ runner.os }}-x64-cabal-${{ env.ghcid }} + ${{ runner.os }}-x64-cabal-store-${{ env.ghcid }} + + - name: Cache - ~/.cabal (excluding store) + id: cabal-config + uses: actions/cache@v4 + with: + path: | + ~/.cabal + !~/.cabal/store + key: ${{ runner.os }}-x64-cabal-config-${{ env.ghcid }}-${{ hashFiles('cabal.project*') }} + restore-keys: | + ${{ runner.os }}-x64-cabal-config-${{ env.ghcid }} + + - name: Cache - dist-newstyle + uses: actions/cache@v4 + with: + path: dist-newstyle + key: ${{ runner.os }}-x64-dist-newstyle-${{ env.ghcid }}-${{ hashFiles('**/*.cabal', 'cabal.project*') }} + restore-keys: | + ${{ runner.os }}-x64-dist-newstyle-${{ env.ghcid }} # actions: