Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
README: updated model workflow to use new outputs.TOOL-version
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed May 6, 2023
1 parent 6315d94 commit 9c0664b
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,6 @@ jobs:
cabal-version: 'latest'
cabal-update: true

- name: Installed minor versions of GHC and Cabal
shell: bash
run: |
GHC_VERSION=$(ghc --numeric-version)
CABAL_VERSION=$(cabal --numeric-version)
echo "GHC_VERSION=${GHC_VERSION}" >> "${GITHUB_ENV}"
echo "CABAL_VERSION=${CABAL_VERSION}" >> "${GITHUB_ENV}"
- name: Configure the build
run: |
cabal configure --enable-tests --enable-benchmarks --disable-documentation
Expand All @@ -158,11 +150,12 @@ jobs:
- name: Restore cached dependencies
uses: actions/cache/restore@v3
id: cache
env:
key: ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-cabal-${{ steps.setup.outputs.cabal-version }}
with:
path: ${{ steps.setup.outputs.cabal-store }}
key: ${{ runner.os }}-ghc-${{ env.GHC_VERSION }}-cabal-${{ env.CABAL_VERSION }}-plan-${{ hashFiles('**/plan.json') }}
restore-keys: |
${{ runner.os }}-ghc-${{ env.GHC_VERSION }}-cabal-${{ env.CABAL_VERSION }}-
key: ${{ env.key }}-plan-${{ hashFiles('**/plan.json') }}
restore-keys: ${{ env.key }}-

- name: Install dependencies
run: cabal build all --only-dependencies
Expand Down

0 comments on commit 9c0664b

Please sign in to comment.