Skip to content

Commit fb228d3

Browse files
authored
Merge pull request #91 from haskell-works/newhoggy/update-ci
Update CI
2 parents bb0efce + a63c467 commit fb228d3

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

.github/workflows/haskell.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,33 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
ghc: ["9.4.2", "9.2.4", "9.0.2", "8.10.7", "8.8.4", "8.6.5"]
20+
ghc: ["9.8.1", "9.6.3", "9.4.8", "9.2.8", "9.0.2", "8.10.7"]
2121
os: [ubuntu-latest, macOS-latest, windows-latest]
2222
exclude:
23-
- ghc: "9.4.2"
24-
os: windows-latest
23+
- os: windows-latest
24+
ghc: "9.4.2"
25+
26+
env:
27+
# Modify this value to "invalidate" the cabal cache.
28+
CABAL_CACHE_VERSION: "2024-01-05"
2529

2630
steps:
2731
- uses: actions/checkout@v2
2832

29-
- uses: haskell/actions/setup@v1
33+
- uses: haskell-actions/setup@v2
3034
id: setup-haskell
3135
with:
3236
ghc-version: ${{ matrix.ghc }}
33-
cabal-version: 3.6.2.0
37+
cabal-version: '3.10.2.1'
3438

3539
- name: Set some window specific things
3640
if: matrix.os == 'windows-latest'
3741
run: echo 'EXE_EXT=.exe' >> $GITHUB_ENV
3842

3943
- name: Configure project
40-
run: cabal configure --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+
44+
run: |
45+
cabal configure --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+
46+
cabal build all --enable-tests --enable-benchmarks --dry-run
4147
4248
- name: Cabal cache over S3
4349
uses: action-works/cabal-cache-s3@v1
@@ -49,7 +55,7 @@ jobs:
4955
dist-dir: dist-newstyle
5056
store-path: ${{ steps.setup-haskell.outputs.cabal-store }}
5157
threads: 16
52-
archive-uri: ${{ secrets.BINARY_CACHE_URI }}
58+
archive-uri: ${{ secrets.BINARY_CACHE_URI }}/${{ env.CABAL_CACHE_VERSION }}/${{ runner.os }}/${{ matrix.cabal }}/${{ matrix.ghc }}
5359
skip: "${{ secrets.BINARY_CACHE_URI == '' }}"
5460

5561
- name: Cabal cache over HTTPS
@@ -58,18 +64,14 @@ jobs:
5864
dist-dir: dist-newstyle
5965
store-path: ${{ steps.setup-haskell.outputs.cabal-store }}
6066
threads: 16
61-
archive-uri: https://cache.haskellworks.io/archive
67+
archive-uri: https://cache.haskellworks.io/${{ env.CABAL_CACHE_VERSION }}/${{ runner.os }}/${{ matrix.cabal }}/${{ matrix.ghc }}
6268
skip: "${{ secrets.BINARY_CACHE_URI != '' }}"
6369

6470
- name: Build
65-
# Try building it twice in case of flakey builds on Windows
66-
run: |
67-
cabal build all --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+ || \
68-
cabal build all --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+ -j1
71+
run: cabal build all --enable-tests --enable-benchmarks
6972

7073
- name: Test
71-
run: |
72-
cabal test all --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+
74+
run: cabal test all --enable-tests --enable-benchmarks
7375

7476
check:
7577
needs: build

hw-json-simd.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ flag sse42
4646

4747
common base { build-depends: base >= 4.11 && < 5 }
4848

49-
common bytestring { build-depends: bytestring >= 0.10.6 && < 0.12 }
50-
common doctest { build-depends: doctest >= 0.16.2 && < 0.21 }
49+
common bytestring { build-depends: bytestring >= 0.10.6 && < 0.13 }
50+
common doctest { build-depends: doctest >= 0.16.2 && < 0.23 }
5151
common doctest-discover { build-depends: doctest-discover >= 0.2 && < 0.3 }
5252
common hw-prim { build-depends: hw-prim >= 0.6.2.35 && < 0.7 }
5353
common lens { build-depends: lens >= 4 && < 6 }
54-
common optparse-applicative { build-depends: optparse-applicative >= 0.14 && < 0.18 }
54+
common optparse-applicative { build-depends: optparse-applicative >= 0.14 && < 0.19 }
5555
common transformers { build-depends: transformers >= 0.4 && < 0.7 }
5656
common vector { build-depends: vector >= 0.12 && < 0.14 }
5757

0 commit comments

Comments
 (0)