Skip to content
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
27 changes: 18 additions & 9 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,24 @@ jobs:
strategy:
fail-fast: false
matrix:
ghc: ["9.2.2", "9.0.2", "8.10.7", "8.8.4", "8.6.5"]
os: [ubuntu-latest, windows-latest]
ghc: ["9.8.1", "9.6.3", "9.4.8", "9.2.8", "9.0.2", "8.10.7"]
os: [ubuntu-latest, macOS-latest, windows-latest]
exclude:
- os: windows-latest
ghc: "9.4.2"

env:
# Modify this value to "invalidate" the cabal cache.
CABAL_CACHE_VERSION: "2024-01-05"

steps:
- uses: actions/checkout@v2

- uses: haskell/actions/setup@v1
- uses: haskell-actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: 3.6.2.0
cabal-version: '3.10.2.1'

- name: Set some window specific things
if: matrix.os == 'windows-latest'
Expand All @@ -36,9 +43,11 @@ jobs:
- name: Configure project
run: |
cabal configure --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+
# APPEND=1 ./scripts/gen-cabal-project-local.sh
# echo "cabal.project.local:"
# cat cabal.project.local
cat >> cabal.project.local <<EOF
package bits-extra
flags: +bmi2
EOF
cabal build all --enable-tests --enable-benchmarks --dry-run

- name: Cabal cache over S3
uses: action-works/cabal-cache-s3@v1
Expand All @@ -50,7 +59,7 @@ jobs:
dist-dir: dist-newstyle
store-path: ${{ steps.setup-haskell.outputs.cabal-store }}
threads: 16
archive-uri: ${{ secrets.BINARY_CACHE_URI }}
archive-uri: ${{ secrets.BINARY_CACHE_URI }}/${{ env.CABAL_CACHE_VERSION }}/${{ runner.os }}/${{ matrix.cabal }}/${{ matrix.ghc }}
skip: "${{ secrets.BINARY_CACHE_URI == '' }}"

- name: Cabal cache over HTTPS
Expand All @@ -59,7 +68,7 @@ jobs:
dist-dir: dist-newstyle
store-path: ${{ steps.setup-haskell.outputs.cabal-store }}
threads: 16
archive-uri: https://cache.haskellworks.io/archive
archive-uri: https://cache.haskellworks.io/${{ env.CABAL_CACHE_VERSION }}/${{ runner.os }}/${{ matrix.cabal }}/${{ matrix.ghc }}
skip: "${{ secrets.BINARY_CACHE_URI != '' }}"

- name: Build
Expand Down
12 changes: 6 additions & 6 deletions hw-simd.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ maintainer: newhoggy@gmail.com
copyright: 2018-2021 John Ky
license: BSD-3-Clause
license-file: LICENSE
tested-with: GHC == 9.2.2, GHC == 9.0.2, GHC == 8.10.7, GHC == 8.8.4, GHC == 8.6.5
tested-with: GHC == 9.8.1, GHC == 9.6.3, GHC == 9.4.8, GHC == 9.2.8, GHC == 9.0.2
build-type: Simple
extra-source-files: README.md
ChangeLog.md
Expand Down Expand Up @@ -41,15 +41,15 @@ flag sse42
common base { build-depends: base >= 4.11 && < 5 }

common bits-extra { build-depends: bits-extra >= 0.0.1.2 && < 0.1 }
common bytestring { build-depends: bytestring >= 0.10 && < 0.12 }
common bytestring { build-depends: bytestring >= 0.10 && < 0.13 }
common cassava { build-depends: cassava >= 0.5.1.0 && < 0.6 }
common containers { build-depends: containers >= 0.5 && < 0.7 }
common containers { build-depends: containers >= 0.5 && < 0.8 }
common criterion { build-depends: criterion >= 1.4.1.0 && < 1.7 }
common deepseq { build-depends: deepseq >= 1.4 && < 1.5 }
common deepseq { build-depends: deepseq >= 1.4 && < 1.6 }
common directory { build-depends: directory >= 1.2.2 && < 1.4 }
common doctest { build-depends: doctest >= 0.16.2 && < 0.21 }
common doctest { build-depends: doctest >= 0.16.2 && < 0.23 }
common doctest-discover { build-depends: doctest-discover >= 0.2 && < 0.3 }
common hedgehog { build-depends: hedgehog >= 0.5 && < 1.3 }
common hedgehog { build-depends: hedgehog >= 0.5 && < 1.5 }
common hspec { build-depends: hspec >= 2.4 && < 3 }
common hw-bits { build-depends: hw-bits >= 0.7.0.2 && < 0.8 }
common hw-hedgehog { build-depends: hw-hedgehog >= 0.1.0.1 && < 0.2 }
Expand Down