Skip to content

Commit

Permalink
configure stack to use ghc 9.6.3 in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
facundominguez committed Dec 5, 2023
1 parent df8b378 commit 4e41abc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,18 @@ commands:
command: |
stack --no-terminal --stack-yaml << parameters.stack_yaml_file >> clean
mkdir -p /tmp/junit/stack
stack --no-terminal --stack-yaml << parameters.stack_yaml_file >> run test-driver
stack --no-terminal --stack-yaml << parameters.stack_yaml_file >> test tests:tasty
# the -package-db and -package arguments help work around https://github.com/commercialhaskell/stack/issues/6251
stack --no-terminal --stack-yaml << parameters.stack_yaml_file >> build liquidhaskell-boot
stack --no-terminal --stack-yaml << parameters.stack_yaml_file >> build liquidhaskell --ghc-options="\"-package-db $(stack path --snapshot-pkg-db)\"" --ghc-options="\"-package-db $(stack path --local-pkg-db)\"" --ghc-options="\"-package liquidhaskell-boot\""
stack --no-terminal --stack-yaml << parameters.stack_yaml_file >> run test-driver --ghc-options="\"-package-db $(stack path --snapshot-pkg-db)\"" --ghc-options="\"-package-db $(stack path --local-pkg-db)\"" --ghc-options="\"-package liquidhaskell\""
stack --no-terminal --stack-yaml << parameters.stack_yaml_file >> test tests:tasty --ghc-options="\"-package-db $(stack path --snapshot-pkg-db)\"" --ghc-options="\"-package-db $(stack path --local-pkg-db)\"" --ghc-options="\"-package liquidhaskell\""
stack --no-terminal --stack-yaml << parameters.stack_yaml_file >> test -j1 liquidhaskell-boot << parameters.extra_build_flags >>
no_output_timeout: 30m
- run:
name: Generate haddock
command: |
# stack haddock liquidhaskell --flag liquidhaskell:-devel --no-haddock-deps --haddock-arguments="--no-print-missing-docs --odir=$CIRCLE_ARTIFACTS"
# skip if extra_build_flags are set
# skip if extra_build_flags are set--ghc-options
[ ! -z "<< parameters.extra_build_flags >>" ] || stack --no-terminal --stack-yaml << parameters.stack_yaml_file >> haddock << parameters.extra_build_flags >> liquidhaskell --no-haddock-deps --haddock-arguments="--no-print-missing-docs"
- run:
name: Dist
Expand Down

0 comments on commit 4e41abc

Please sign in to comment.