Skip to content

Commit

Permalink
Update cache action (add ~/.cabal-devx and ~/.cache to the cache)
Browse files Browse the repository at this point in the history
  • Loading branch information
yvan-sraka committed Apr 16, 2024
1 parent 430e419 commit 912549e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cache/action.yml
Expand Up @@ -8,9 +8,25 @@ inputs:
runs:
using: "composite"
steps:
- name: Bootstrap devx shell
uses: input-output-hk/actions/devx@latest
with:
platform: 'x86_64-linux'
target-platform: ''
compiler-nix-name: ${{ inputs.ghc_version }}
minimal: false
iog: true
- name: Run HLS headless to generate hie-bios cache
shell: devx {0}
run: |
cabal update
cabal build all -j
timeout 15m haskell-language-server --project-ghc-version || true
- name: Cache build artifacts (used to speed up GitHub Codespaces bootstrapping)
uses: actions/upload-artifact@v4
with:
name: cache-${{ github.event.pull_request.head.sha || github.sha }}-${{ inputs.ghc_version }}
path: |
./dist-newstyle
$HOME/.cabal-devx
$HOME/.cache

0 comments on commit 912549e

Please sign in to comment.