Skip to content

Commit

Permalink
caching working!
Browse files Browse the repository at this point in the history
  • Loading branch information
julialongtin committed Jan 28, 2024
1 parent 9dc726c commit 9bc1f04
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,6 @@ jobs:
run: cabal build all --enable-tests --enable-benchmarks --only-dependencies
- name: build all
run: cabal build all --enable-tests --enable-benchmarks
- name: Save build artifacts
uses: "actions/cache/save@v4"
with:
key: "${{ runner.os }}-${{ matrix.ghc }}-cabal-${{ hashFiles('cabal.project.freeze') }}"
path: |
"${{ steps.setup-haskell-cabal.outputs.cabal-store }}"
~/.cabal/packages
~/.cabal/store
~/.cabal/bin
dist-newstyle
~/.local/bin
- name: test all
run: cabal test test-hslice --enable-tests
strategy:
Expand Down Expand Up @@ -136,11 +125,18 @@ jobs:
fi
- name: freeze
run: cabal freeze
- uses: "actions/cache/restore@v4"
- name: Restore build artifacts
uses: "actions/cache/restore@v4"
id: build-hslice-restore
with:
key: "${{ runner.os }}-${{ matrix.ghc }}-build-cabal-${{ hashFiles('cabal.project.freeze') }}"
path: "${{ steps.setup-haskell-cabal.outputs.cabal-store }} dist-newstyle"
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
key: "${{ runner.os }}-${{ matrix.ghc }}-cabal-${{ hashFiles('cabal.project.freeze') }}"
path: |
"${{ steps.setup-haskell-cabal.outputs.cabal-store }}"
~/.cabal/packages
~/.cabal/store
~/.cabal/bin
dist-newstyle
~/.local/bin
- name: Install dependencies
run: cabal build all --enable-tests --enable-benchmarks --only-dependencies
- name: build all
Expand Down

0 comments on commit 9bc1f04

Please sign in to comment.