-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.2.1.4: drop support for GHC 7, add support for LTS 11.22 and up
- Loading branch information
1 parent
0ae4c04
commit 5158dd6
Showing
5 changed files
with
123 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: Stack build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
stack: | ||
name: ${{ matrix.os }} Stack ${{ matrix.plan.resolver }} / ${{ matrix.plan.ghc }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
plan: | ||
- ghc: '9.8.2' | ||
resolver: 'nightly-2024-04-25' | ||
- ghc: '9.6.4' | ||
resolver: 'lts-22.18' | ||
- ghc: '9.4.8' | ||
resolver: 'lts-21.25' | ||
- ghc: '9.2.8' | ||
resolver: 'lts-20.26' | ||
- ghc: '9.0.2' | ||
resolver: 'lts-19.33' | ||
- ghc: '8.10.7' | ||
resolver: 'lts-18.28' | ||
- ghc: '8.8.4' | ||
resolver: 'lts-16.31' | ||
- ghc: '8.6.5' | ||
resolver: 'lts-14.27' | ||
- ghc: '8.4.4' | ||
resolver: 'lts-12.26' | ||
- ghc: '8.2.2' | ||
resolver: 'lts-11.22' | ||
# LTS 9.21 does not have recent enough parsec and test | ||
# - ghc: '8.0.2' | ||
# resolver: 'lts-9.21' | ||
|
||
include: | ||
- os: windows-latest | ||
plan: | ||
ghc: '9.8.2' | ||
resolver: 'nightly-2024-04-25' | ||
|
||
- os: macos-latest | ||
plan: | ||
ghc: '9.8.2' | ||
resolver: 'nightly-2024-04-25' | ||
|
||
runs-on: ${{ matrix.os }} | ||
env: | ||
STACK: stack --system-ghc --no-terminal --resolver ${{ matrix.plan.resolver }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: haskell-actions/setup@latest | ||
id: setup | ||
with: | ||
ghc-version: ${{ matrix.plan.ghc }} | ||
enable-stack: true | ||
cabal-update: false | ||
|
||
- uses: actions/cache/restore@v4 | ||
id: cache | ||
env: | ||
key: ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}- | ||
with: | ||
path: ${{ steps.setup.outputs.stack-root }} | ||
key: ${{ env.key }}-${{ github.sha }} | ||
restore-keys: ${{ env.key }}- | ||
|
||
- name: Configure | ||
run: $STACK init | ||
|
||
- name: Install dependencies | ||
run: $STACK test --only-dependencies | ||
|
||
- name: Build | ||
run: $STACK test --haddock --no-haddock-deps --no-run-tests | ||
|
||
- name: Test | ||
run: $STACK -j 1 test --haddock --no-haddock-deps | ||
|
||
- uses: actions/cache/save@v4 | ||
if: always() && steps.cache.outputs.cache-hit != 'true' | ||
with: | ||
path: ${{ steps.setup.outputs.stack-root }} | ||
key: ${{ steps.cache.outputs.cache-primary-key }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
/dist/ | ||
/.ghc.environment.* | ||
/dist-newstyle/ | ||
/.ghc.environment.* | ||
/.stack-work/ | ||
/stack*.yaml.lock | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters