From 5ea1f045399a3736ebfe3dd6e8c01eabdc39514e Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 12 May 2024 16:35:50 +0200 Subject: [PATCH] ci: Reduce stack cache size This removes the GHC install from stack caches to reduce size. --- .github/workflows/build.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f88f8c504c..24deb11df8 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -90,20 +90,28 @@ jobs: - name: Linux runs-on: ubuntu-22.04 cache: | - ~/.stack + ~/.stack/pantry + ~/.stack/snapshots + ~/.stack/stack.sqlite3 # no artifact for Linux, because we use the static build - name: MacOS runs-on: macos-12 cache: | - ~/.stack + ~/.stack/pantry + ~/.stack/snapshots + ~/.stack/stack.sqlite3 artifact: postgrest-macos-x64 - name: Windows runs-on: windows-2022 cache: | - ~\AppData\Roaming\stack - ~\AppData\Local\Programs\stack + ~\AppData\Roaming\stack\pantry + ~\AppData\Local\Programs\stack\pantry + ~\AppData\Roaming\stack\snapshots + ~\AppData\Local\Programs\stack\snapshots + ~\AppData\Roaming\stack\stack.sqlite3 + ~\AppData\Local\Programs\stack\stack.sqlite3 deps: Add-Content $env:GITHUB_PATH $env:PGBIN artifact: postgrest-windows-x64