Skip to content

Commit

Permalink
Turn off cabal install check temporarily.
Browse files Browse the repository at this point in the history
  • Loading branch information
csasarak committed Oct 5, 2023
1 parent 831897e commit 7c3cf22
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7c3cf22

Please sign in to comment.