Skip to content

Commit

Permalink
Merge pull request #399 from balacij/master
Browse files Browse the repository at this point in the history
CI: Updated cached paths for `cabal` and update Haskell config action dep
  • Loading branch information
JacquesCarette authored Oct 11, 2023
2 parents 4e0173c + 0d9d3e0 commit d033e35
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ env:

GHC_VERSION: 8.10.7
CABAL_VERSION: 3.6.2.0
CABAL_INSTALL: cabal install --overwrite-policy=always --ghc-options='-O1 +RTS -M6G -RTS' --installdir $HOME/.local/state/cabal/bin
CABAL_INSTALL: cabal install --overwrite-policy=always --ghc-options='-O1 +RTS -M6G -RTS' --installdir $HOME/.cabal/bin
AGDA: agda --auto-inline -Werror +RTS -M6G -H3.5G -A128M -RTS -i. -i src/

jobs:
Expand All @@ -72,7 +72,7 @@ jobs:
# The script won't be able to find Agda if we don't tell it to look at the
# content of ~/.cabal/bin
- name: Put cabal programs in PATH
run: echo "$HOME/.local/state/cabal/bin" >> $GITHUB_PATH
run: echo "$HOME/.cabal/bin" >> $GITHUB_PATH

########################################################################
## CACHING
Expand All @@ -87,10 +87,10 @@ jobs:
id: cache-cabal
with:
path: |
~/.local/state/cabal/packages
~/.local/state/cabal/store
~/.local/state/cabal/bin
~/.local/state/cabal/share
~/.cabal/packages
~/.cabal/store
~/.cabal/bin
~/.cabal/share
key: ${{ runner.os }}-${{ env.GHC_VERSION }}-${{ env.CABAL_VERSION }}-${{ env.AGDA_COMMIT }}

########################################################################
Expand All @@ -99,7 +99,7 @@ jobs:

- name: Install ghc and cabal
if: steps.cache-cabal.outputs.cache-hit != 'true'
uses: haskell/actions/setup@v2
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ env.GHC_VERSION }}
cabal-version: ${{ env.CABAL_VERSION }}
Expand All @@ -117,7 +117,7 @@ jobs:
mkdir -p doc
touch doc/user-manual.pdf
# make sure it exists
mkdir -p $HOME/.local/state/cabal/bin
mkdir -p $HOME/.cabal/bin
${{ env.CABAL_INSTALL }}
cd ..
Expand Down

0 comments on commit d033e35

Please sign in to comment.