From 7c3cf226545abf2b376b226245e727976ed7a947 Mon Sep 17 00:00:00 2001 From: Christopher Sasarak Date: Wed, 4 Oct 2023 19:31:11 -0500 Subject: [PATCH] Turn off cabal install check temporarily. --- .github/workflows/lint.yml | 88 +++++++++++++++++++------------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f097f97050..cb452f438b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -70,50 +70,50 @@ jobs: run: | cabal-fmt --check spectrometer.cabal - cabal-install-check: - name: cabal-install-check - runs-on: ubuntu-latest - # Be sure to update the env var below - container: ghcr.io/fossas/haskell-dev-tools:9.4.7 - - env: - GHC_VERSION: '9.4.7' - - steps: - - uses: actions/checkout@v3 - - # Run `cabal install`. - - # Cabal install stores build products in a different location than a regular build. - # This means its caches are useless for the other Linux workflows. - # This will only restore caches for this check and not save them. - - uses: actions/cache/restore@v3 - name: Restore cabal store - with: - path: | - ${{ steps.setup-haskell.outputs.cabal-store || '~/.cabal/store' }} - dist-newstyle/ - key: ${{ runner.os }}-${{ env.GHC_VERSION }}-cabal-cache-${{ hashFiles('**/*.cabal', 'cabal.project.ci.linux') }} - restore-keys: | - ${{ runner.os }}-${{ env.GHC_VERSION }}-cabal-cache- - ${{ runner.os }}-${{ env.GHC_VERSION }}- - ${{ runner.os }}- - - # 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 - cabal update - - cabal install --project=cabal.project.ci.linux --ghc-options="-Wwarn" + # cabal-install-check: + # name: cabal-install-check + # runs-on: ubuntu-latest + # # Be sure to update the env var below + # container: ghcr.io/fossas/haskell-dev-tools:9.4.7 + + # env: + # GHC_VERSION: '9.4.7' + + # steps: + # - uses: actions/checkout@v3 + + # # Run `cabal install`. + + # # Cabal install stores build products in a different location than a regular build. + # # This means its caches are useless for the other Linux workflows. + # # This will only restore caches for this check and not save them. + # - uses: actions/cache/restore@v3 + # name: Restore cabal store + # with: + # path: | + # ${{ steps.setup-haskell.outputs.cabal-store || '~/.cabal/store' }} + # dist-newstyle/ + # key: ${{ runner.os }}-${{ env.GHC_VERSION }}-cabal-cache-${{ hashFiles('**/*.cabal', 'cabal.project.ci.linux') }} + # restore-keys: | + # ${{ runner.os }}-${{ env.GHC_VERSION }}-cabal-cache- + # ${{ runner.os }}-${{ env.GHC_VERSION }}- + # ${{ runner.os }}- + + # # 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 + # cabal update + + # cabal install --project=cabal.project.ci.linux --ghc-options="-Wwarn" schema-lint-check: name: "schema lint check"