Skip to content

Commit

Permalink
CI: Simplify Stack version bumps
Browse files Browse the repository at this point in the history
The `.ci` directory contains `stack.yaml` files for each GHC version we
test with Stack on CI. These files used to be named after the full GHC
version, which is annoying if you want to bump to a later minor version.
The files are now named only after the major GHC version so the file
doesn't change name on such a bump.
  • Loading branch information
DigitalBrains1 committed Sep 17, 2023
1 parent 20df524 commit 65f5671
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ jobs:

- name: General Setup
run: |
cp .ci/stack-${{ matrix.ghc }}.yaml stack.yaml
declare GHC_VERSION=${{ matrix.ghc }}
# Rewrite an argument of the form X.Y.Z to X.Y
cp .ci/stack-${GHC_VERSION%.*}.yaml stack.yaml
# Print out some information for debugging purposes
ghc --version
stack --version
Expand Down

0 comments on commit 65f5671

Please sign in to comment.