From 2d3688dc8ab442879801cf966267dad2acb47dc3 Mon Sep 17 00:00:00 2001 From: Christopher Sasarak Date: Wed, 4 Oct 2023 18:09:23 -0500 Subject: [PATCH] cabal install check change. --- .github/workflows/lint.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e99d38ab13..b3b2b5a03d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 @@ -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