-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixes for GHC 9.4.6. * support 64 bit systems older than ghc 9.4 * add check for ghc 9.4.1+. * add check for 32 bit ghc 9.4.1+. * move definitions under copyright. * Add CI * Testsuite fixes * try * fixup! try * Fix testsuite warnings (#3) --------- Co-authored-by: Richard Marko <srk@48.io>
- Loading branch information
1 parent
37b6753
commit c545fbd
Showing
7 changed files
with
146 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
let haskellCi = | ||
https://raw.githubusercontent.com/sorki/github-actions-dhall/main/haskell-ci.dhall | ||
|
||
in haskellCi.generalCi | ||
haskellCi.defaultCabalSteps | ||
haskellCi.DhallMatrix::{ | ||
, ghc = | ||
[ haskellCi.GHC.GHC963 | ||
, haskellCi.GHC.GHC947 | ||
, haskellCi.GHC.GHC928 | ||
, haskellCi.GHC.GHC8107 | ||
, haskellCi.GHC.GHC884 | ||
] | ||
, cabal = [ haskellCi.Cabal.Cabal310, haskellCi.Cabal.Cabal34 ] | ||
, os = [ haskellCi.OS.Ubuntu2204, haskellCi.OS.Ubuntu2004 ] | ||
} | ||
: haskellCi.CI.Type |
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,12 @@ | ||
#!/usr/bin/env bash | ||
# Script by @fisx | ||
|
||
set -eo pipefail | ||
|
||
# cd into the dir where this script is placed | ||
cd "$( dirname "${BASH_SOURCE[0]}" )" | ||
|
||
echo "regenerating .github/workflows/ci.yaml" | ||
|
||
which dhall-to-yaml-ng || cabal install dhall-yaml | ||
dhall-to-yaml-ng --generated-comment --file ci.dhall > ci.yaml |
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,57 @@ | ||
# Code generated by dhall-to-yaml. DO NOT EDIT. | ||
jobs: | ||
build: | ||
name: "GHC ${{ matrix.ghc }}, Cabal ${{ matrix.cabal }}, OS ${{ matrix.os }}" | ||
"runs-on": "${{ matrix.os }}" | ||
steps: | ||
- uses: "actions/checkout@v4" | ||
with: | ||
submodules: recursive | ||
- id: "setup-haskell-cabal" | ||
uses: "haskell-actions/setup@v2" | ||
with: | ||
"cabal-version": "${{ matrix.cabal }}" | ||
"ghc-version": "${{ matrix.ghc }}" | ||
- name: Update Hackage repository | ||
run: cabal update | ||
- name: cabal.project.local.ci | ||
run: | | ||
if [ -e cabal.project.local.ci ]; then | ||
cp cabal.project.local.ci cabal.project.local | ||
fi | ||
- name: freeze | ||
run: "cabal freeze --enable-tests --enable-benchmarks" | ||
- uses: "actions/cache@v3" | ||
with: | ||
key: "${{ matrix.os }}-${{ matrix.ghc }}-${{ matrix.cabal}}-${{ hashFiles('cabal.project.freeze') }}" | ||
path: | | ||
${{ steps.setup-haskell-cabal.outputs.cabal-store }} | ||
dist-newstyle | ||
- name: Install dependencies | ||
run: "cabal build all --enable-tests --enable-benchmarks --only-dependencies" | ||
- name: build all | ||
run: "cabal build all --enable-tests --enable-benchmarks" | ||
- name: test all | ||
run: "cabal test all --enable-tests" | ||
- name: haddock all | ||
run: cabal haddock all | ||
strategy: | ||
matrix: | ||
cabal: | ||
- '3.10' | ||
- '3.4' | ||
ghc: | ||
- '9.6.3' | ||
- '9.4.7' | ||
- '9.2.8' | ||
- '8.10.7' | ||
- '8.8.4' | ||
os: | ||
- "ubuntu-22.04" | ||
- "ubuntu-20.04" | ||
name: Haskell CI | ||
'on': | ||
pull_request: {} | ||
push: {} | ||
schedule: | ||
- cron: "4 20 10 * *" |
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
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
module TestUtils where | ||
|
||
import Data.Word | ||
import Data.Bits | ||
|
||
import Numeric | ||
|
||
|