Skip to content

Commit

Permalink
Move the cabal install check into the build-all workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
csasarak committed Oct 3, 2023
1 parent f3c8922 commit 21237be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 42 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ jobs:
cabal update
$RUN_CMD || $RUN_CMD
- name: Check `cabal install`
run: |
cabal install --project-file=${{ matrix.project-file }}
- name: Run unit tests
run: |
cabal test --project-file=${{ matrix.project-file }} unit-tests
Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,48 +70,6 @@ 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`.
- uses: actions/cache@v3
name: Cache cabal store
with:
path: ${{ steps.setup-haskell.outputs.cabal-store || '~/.cabal/store' }}
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 }}-
# Cabal or GHC don't seem to let -Wwarn from the cli override -Werror from the project file.
# This means that without vendor bins the build fails with warnings about missing embedded files.
# This step just touches several files that the build can use for embedding.
- name: Setup mock vendor-bins
run: |
mkdir vendor-bins && \
touch vendor-bins/themis-cli && \
touch vendor-bins/index.gob.xz && \
touch vendor-bins/lernie
- name: Run `cabal install`
run: |
apk add xz-dev bzip2-dev bzip2-static
cabal update
# A previous version used --ghc-options=-Wwarn.
# For reasons written in the above step that doesn't work now.
cabal install --project-file=cabal.project.ci.linux
schema-lint-check:
name: "schema lint check"
runs-on: ubuntu-latest
Expand Down

0 comments on commit 21237be

Please sign in to comment.