Skip to content

Commit

Permalink
ci: Reduce stack cache size
Browse files Browse the repository at this point in the history
This removes the GHC install from stack caches to reduce size.
  • Loading branch information
wolfgangwalther committed May 12, 2024
1 parent d02d6d5 commit 5ea1f04
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5ea1f04

Please sign in to comment.