Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI for the passage of time #22

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone project
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Apply yamllint
uses: ibiqlik/action-yamllint@v3
with:
format: github
- name: Set up HLint
uses: haskell/actions/hlint-setup@v2
uses: haskell-actions/hlint-setup@v2
with:
version: "3.6.1"
version: "3.8"
- name: Apply HLint
run: |
set -ex
Expand Down
31 changes: 21 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
- master
workflow_dispatch:

# As of 11 October 2023, ubuntu-latest and windows-latest come with
# Stack 2.13.1. macos-latest comes with Stack 2.9.3.
# As of 19 October 2024, ubuntu-latest and windows-latest come with
# Stack 3.1.1. macos-13 and macos-latest do not come with Haskell tools.

jobs:
tests:
Expand All @@ -20,35 +20,46 @@ jobs:
os:
- ubuntu-latest
- windows-latest
- macos-latest
- macos-13 # x86_64
- macos-latest # AArch64
resolver:
- stack-ghc-8.8.4.yaml
- stack-ghc-8.10.7.yaml
- stack-ghc-9.0.2.yaml
- stack-ghc-9.2.8.yaml
- stack-ghc-9.4.7.yaml
- stack-ghc-9.6.3.yaml
- stack-ghc-9.8.1.yaml
- stack-ghc-9.6.6.yaml
- stack-ghc-9.8.2.yaml
- stack-ghc-9.10.1.yaml
exclude:
- os: macos-latest
resolver: stack-ghc-8.10.7.yaml # GHC 8.10.7 needs LLVM >= 9 & <= 12
- os: macos-latest
resolver: stack-ghc-9.0.2.yaml # GHC 9.0.2 needs LLVM >= 9 & <= 12
steps:
- name: Clone project
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Cache dependencies on Unix-like OS
if: startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS')
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.stack
key: ${{ runner.os }}-${{ hashFiles( matrix.resolver ) }}
- name: Cache dependencies on Windows
if: startsWith(runner.os, 'Windows')
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~\AppData\Roaming\stack
~\AppData\Local\Programs\stack
key: ${{ runner.os }}-${{ hashFiles( matrix.resolver ) }}
- name: Test
- name: Install dependencies and test
shell: bash
run: |
set -ex
if [[ "${{ matrix.os }}" == "macos-13" || "${{ matrix.os }}" == "macos-latest" ]]
then
# macos-13 and macos-latest do not include Haskell tools as at 2024-10-19.
curl -sSL https://get.haskellstack.org/ | sh
fi
stack --resolver=${{ matrix.resolver }} test --bench --only-dependencies
stack --resolver=${{ matrix.resolver }} test --haddock --no-haddock-deps --bench --no-run-benchmarks
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ from the objective, consider marking it in the configuration file to be ignored.
## Testing

The library is tested using GitHub Actions. The GitHub Actions script aims to
test builds with versions of GHC released within the last three years. GHC 8.8.4
was released on 15 July 2020.
test builds with versions of GHC released within at least the last three years.
GHC 8.10.7 was released on 27 August 2021.

A separate Stack project-level configuration file is provided for the most
recent release of each major GHC version for which there is a Stackage snapshot.
Expand Down
2 changes: 1 addition & 1 deletion stack-ghc-8.10.7.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# GHC 8.10.7
resolver: lts-18.28
snapshot: lts-18.28
2 changes: 1 addition & 1 deletion stack-ghc-8.6.5.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# GHC 8.6.5
resolver: lts-14.27
snapshot: lts-14.27
2 changes: 1 addition & 1 deletion stack-ghc-8.8.4.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# GHC 8.8.4
resolver: lts-16.31
snapshot: lts-16.31
2 changes: 1 addition & 1 deletion stack-ghc-9.0.2.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# GHC 9.0.2
resolver: lts-19.33
snapshot: lts-19.33
36 changes: 36 additions & 0 deletions stack-ghc-9.10.1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is an experimental snapshot, to see if hi-file-parser can be built with
# GHC 9.10.1.

# GHC 9.10.1
snapshot: ghc-9.10.1

packages:
- QuickCheck-2.15.0.1@sha256:ff732606dd8b3f76e3cb87a26516583d183729bf540085228c82adf037aca8bf,8751
- ansi-terminal-1.1.1@sha256:5b3e9228323416a1962d5948b18f9eff8569ad94a368e15f0e6104128783f572,2894
- ansi-terminal-types-1.1@sha256:135f6a381afa19d53d0a3fe40b6dd47e6666c538b09e4300fbb1438759df3248,1462
- async-2.2.5@sha256:cf9e6afba8e01830ca0d32a12b98d481cf389688762c80d1870a1db2061ebf35,3257
- call-stack-0.4.0@sha256:ac44d2c00931dc20b01750da8c92ec443eb63a7231e8550188cb2ac2385f7feb,1200
- colour-2.3.6@sha256:ebdcbf15023958838a527e381ab3c3b1e99ed12d1b25efeb7feaa4ad8c37664a,2378
- hashable-1.5.0.0@sha256:fc68b07d957ade5a0a0beadd560a8d093ceac30b2f35c85eed3bcf7889a25975,5833
- haskell-lexer-1.1.1@sha256:4ce310678b7e56b51acb558c0233d2f71a3f3553f8a88e9b48c0bc68301f799b,1296
- hspec-2.11.9@sha256:6e7fb7a40404f11b028f1b19f07779887b2c8af04cbae7eaea73e83c440954c7,1763
- hspec-core-2.11.9@sha256:a38fdefae046551335b56300e19b1ab2f902aa6401d1eb374e5ea81df85f6997,6826
- hspec-discover-2.11.9@sha256:74c689bf33d7373bac5d4ffe273fe0b034d277c30aa2a23d3790d5b365dbdf1c,2169
- hspec-expectations-0.8.4@sha256:4237f094a7931202ff57ac6475542b0b314b50a7024550e2b6eb87cfb0d4ff93,1702
- HUnit-1.6.2.0@sha256:1a79174e8af616117ad39464cac9de205ca923da6582825e97c10786fda933a4,1588
- microlens-0.4.13.1@sha256:fc256e2b5d78e8e4f39b3dd359c57b8c19df50853a86eaf8f154a17441a5a51d,4703
- microlens-mtl-0.2.0.3@sha256:92f6e76b1e0177a990496df2ab55972476a1f117d0a7b944f810bce6b4848377,2026
- primitive-0.9.0.0@sha256:2e08c5409e3559c7f1669ef50e9a0d9a397e68ecf51110d5e2cedf05cdd7d93c,3171
- quickcheck-io-0.2.0@sha256:7bf0b68fb90873825eb2e5e958c1b76126dcf984debb998e81673e6d837e0b2d,1133
- random-1.2.1.2@sha256:32397de181e20ccaacf806ec70de9308cf044f089a2be37c936f3f8967bde867,6460
- rio-0.1.22.0@sha256:95fc3725a638bb7d6e11be7a2cf8d601097ebc8cb992661b211a6e36ed1da726,3669
- safe-exceptions-0.1.7.4@sha256:8bb7261bd54bd58acfcb154be6a161fb6d0d31a1852aadc8e927d2ad2d7651d1,1412
- splitmix-0.1.0.5@sha256:caa9b4a92abf1496c7f6a3c0f4e357426a54880077cb9f04e260a8bfa034b77b,6596
- tf-random-0.5@sha256:14012837d0f0e18fdbbe3d56e67da8622ee5e20b180abce952dd50bd9f36b326,3983
- transformers-compat-0.7.2@sha256:044fb9955f63ee138fcebedfdcbe54afe741f2d5892a2d0bdf3a8052bd342643,5601
- typed-process-0.2.12.0@sha256:ef8a3bd94aac6f9823098f49bd8c7199125ae5e61d82b583007180dad17a145d,2198
- unliftio-0.2.25.0@sha256:d015242554890370bcbc3a575019be691d0edc279736ef97d29412fb9d0c4349,3410
- unliftio-core-0.2.1.0@sha256:f6a2736f858b5390d9384dca43d3ea4d96e9ca17217791791ca4951ba6e8072a,996
- unordered-containers-0.2.20@sha256:c7fe9cba405ed9905e12d89c7add3b3eb9868dfba7975e70ba0cdd64b7b11abc,3921
- vector-0.13.1.0@sha256:bc032ccfb51d775eb6f4082c5fc02f5416b0ea0d6644a60d87677a6937f2d70d,9015
- vector-stream-0.1.0.1@sha256:16a69e2ed71d7b35e16860fac520f94fa4da120eb973d9f8fbf0aa3a703d4a9f,1583
2 changes: 1 addition & 1 deletion stack-ghc-9.2.8.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# GHC 9.2.8
resolver: lts-20.26
snapshot: lts-20.26

flags:
ansi-terminal:
Expand Down
2 changes: 1 addition & 1 deletion stack-ghc-9.4.7.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# GHC 9.4.7
resolver: lts-21.15
snapshot: lts-21.15

flags:
ansi-terminal:
Expand Down
2 changes: 0 additions & 2 deletions stack-ghc-9.6.3.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions stack-ghc-9.6.6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# GHC 9.6.6
snapshot: lts-22.38
36 changes: 0 additions & 36 deletions stack-ghc-9.8.1.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions stack-ghc-9.8.2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# GHC 9.8.2
snapshot: nightly-2024-10-11
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
snapshot: stack-ghc-9.4.7.yaml
snapshot: stack-ghc-9.6.6.yaml
10 changes: 5 additions & 5 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files
# https://docs.haskellstack.org/en/stable/topics/lock_files

packages: []
snapshots:
- completed:
sha256: 350737ef1c4c748f4c7ff56b6e74f2f6d15039a2f148662a8ec1aded016b80d0
size: 640033
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/21/15.yaml
original: lts-21.15
sha256: 0964f3e2c04e21abf42e271490e6974bc923aac2f2fd595fcb53ad0c237dbed1
size: 720034
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/38.yaml
original: lts-22.38