Skip to content

Commit

Permalink
cabal install check change.
Browse files Browse the repository at this point in the history
  • Loading branch information
csasarak committed Oct 4, 2023
1 parent 0699ea6 commit 2d3688d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,6 @@ jobs:
steps:
- uses: actions/checkout@v3

# For some reason newer cabal or newer ghc doesn't prioritize cli options like -Wwarn over project file -Werror.
# Because -Werror is specified in the project file, we get errors due to missing vendor binaries.
# So edit the project file temporarily to not care about warnings.
# This is what -Wwarn is supposed to do below.
# We don't really lose anything here since it's run with -Werror in other workflows.
- name: Delete ghc-options -Werror
run: |
sed -i '/ghc-options: -Werror/d' cabal.project.ci.linux
# Run `cabal install`.
- uses: actions/cache@v3
name: Cache cabal store
Expand All @@ -104,6 +95,17 @@ jobs:
${{ runner.os }}-${{ env.GHC_VERSION }}-
${{ runner.os }}-
# ALWAYS run this after the cache action so we don't screw up the cache key.
#
# For some reason newer cabal or newer ghc doesn't prioritize cli options like -Wwarn over project file -Werror.
# Because -Werror is specified in the project file, we get errors due to missing vendor binaries.
# So edit the project file temporarily to not care about warnings.
# This is what -Wwarn is supposed to do below.
# We don't really lose anything here since it's run with -Werror in other workflows.
- name: Delete ghc-options -Werror
run: |
sed -i '/ghc-options: -Werror/d' cabal.project.ci.linux
- name: Run `cabal install`
run: |
apk add xz-dev bzip2-dev bzip2-static
Expand Down

0 comments on commit 2d3688d

Please sign in to comment.