Skip to content

Commit

Permalink
Add haskell-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Jul 14, 2024
1 parent 1357141 commit 32ff31b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This GitHub workflow config has been generated by a script via
#
# haskell-ci 'github' 'cabal.project' '--apt' 'libwebkit2gtk-4.0-dev' '--jobs-selection' 'any' '--error-missing-methods' 'none' '--no-install-dependencies' '--installed' '-Cabal'
# haskell-ci 'github' 'cabal.project' '--apt' 'libwebkit2gtk-4.0-dev' '--apt' 'libgirepository1.0-dev' '--jobs-selection' 'any' '--error-missing-methods' 'none' '--no-install-dependencies' '--installed' '-Cabal'
#
# To regenerate the script (for example after adjusting tested-with) run
#
Expand All @@ -10,7 +10,7 @@
#
# version: 0.19.20240708
#
# REGENDATA ("0.19.20240708",["github","cabal.project","--apt","libwebkit2gtk-4.0-dev","--jobs-selection","any","--error-missing-methods","none","--no-install-dependencies","--installed","-Cabal"])
# REGENDATA ("0.19.20240708",["github","cabal.project","--apt","libwebkit2gtk-4.0-dev","--apt","libgirepository1.0-dev","--jobs-selection","any","--error-missing-methods","none","--no-install-dependencies","--installed","-Cabal"])
#
name: Haskell-CI
on:
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
"$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
apt-get update
apt-get install -y libwebkit2gtk-4.0-dev
apt-get install -y libgirepository1.0-dev libwebkit2gtk-4.0-dev
env:
HCKIND: ${{ matrix.compilerKind }}
HCNAME: ${{ matrix.compiler }}
Expand Down Expand Up @@ -213,12 +213,7 @@ jobs:
echo "packages: ${PKGDIR_jsaddle_webkit2gtk}" >> cabal.project
cat >> cabal.project <<EOF
constraints: haskell-gi-overloading == 0.0
allow-newer: websockets:random
allow-newer: splitmix:time
allow-newer: *:time
allow-newer: *:unix
allow-newer: *:process
allow-newer: stm:base
allow-newer: vault:base
EOF
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(Cabal|jsaddle|jsaddle-clib|jsaddle-warp|jsaddle-webkit2gtk)$/; }' >> cabal.project.local
cat cabal.project
Expand Down

0 comments on commit 32ff31b

Please sign in to comment.