Skip to content

Commit

Permalink
ci: add package cache for build-haskell-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
XmchxUp committed Oct 11, 2024
1 parent b92cfc4 commit a100ee2
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,23 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Haskell toolchain (ghc-9.2.8)
run: |
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
ghcup install ghc 9.2.8 --set
ghcup install cabal --set
cabal update
- name: Setup Haskell toolchain
uses: haskell/actions/setup@v2
with:
ghc-version: '9.6.5'
cabal-version: '3.10.1.0'

- name: Setup cache
uses: actions/cache@v3
env:
cache-name: cache-cabal
with:
path: ~/.cabal
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Setup Rust toolchain
uses: ./.github/actions/setup
Expand Down

0 comments on commit a100ee2

Please sign in to comment.