Skip to content

Commit

Permalink
Update haskell.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yvan-sraka committed Apr 2, 2024
1 parent ffe820f commit f59f468
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,18 @@ jobs:
# with:
# limit-access-to-actor: true

- name: Force Cabal and HLS to populate their caches
if: runner.os == 'Linux' && (matrix.ghc == '8.10.7' || matrix.ghc == '9.6.2')
run: |
timeout 15m bash -c "nix develop github:input-output-hk/devx#${{ matrix.ghc == '8.10.7' && 'ghc810' || matrix.ghc == '9.6.2' && 'ghc96' }} --command bash -c 'cabal update; haskell-language-server --project-ghc-version'"
shell: bash

- name: Cache build artifacts (used to speed up GitHub Codespaces bootstrapping)
if: runner.os == 'Linux' && (matrix.ghc == '8.10.7' || matrix.ghc == '9.6.2')
uses: actions/upload-artifact@v2
with:
name: cache-${{ github.sha }}-${{ matrix.ghc == '8.10.7' && 'ghc810' || matrix.ghc == '9.6.2' && 'ghc96' }}
path: ~/.cache
path: |
~/.cache
~/.cabal-devx
./dist-newstyle

0 comments on commit f59f468

Please sign in to comment.