on master help sign in
Merge pull request #69 from haskell-hvr/ghc-9.4a

Support GHC-9.4 (uuid-types)

commit9d83ad00ce1f2856d597a3fb1546285af6561f22 authorOleg Grenrus <oleg.grenrus@iki.fi> dateWed 10 Aug 2022, 23:39 (4 years ago) parentcf5f253780753e
5 files changed+75−40
.github/workflows/haskell-ci-bench.yml+42−19 .github/workflows/haskell-ci.yml+25−14 uuid-bench/uuid-bench.cabal+2−2 uuid-types/uuid-types.cabal+5−4 uuid/uuid.cabal+1−1
.github/workflows/haskell-ci-bench.yml+42−19
@@ -8,9 +8,9 @@
88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11−# version: 0.13.20211030
11+# version: 0.15.20220808
1212#
13−# REGENDATA ("0.13.20211030",["github","--project","cabal.bench.project","-o",".github/workflows/haskell-ci-bench.yml","--github-action-name","Benchmarks"])
13+# REGENDATA ("0.15.20220808",["github","--project","cabal.bench.project","-o",".github/workflows/haskell-ci-bench.yml","--github-action-name","Benchmarks"])
1414#
1515name: Benchmarks
1616on:
@@ -23,17 +23,19 @@ on:
2323jobs:
2424 linux:
2525 name: Benchmarks - Linux - ${{ matrix.compiler }}
26− runs-on: ubuntu-18.04
26+ runs-on: ubuntu-20.04
27+ timeout-minutes:
28+ 60
2729 container:
2830 image: buildpack-deps:bionic
2931 continue-on-error: ${{ matrix.allow-failure }}
3032 strategy:
3133 matrix:
3234 include:
33− - compiler: ghc-8.10.3
35+ - compiler: ghc-8.10.7
3436 compilerKind: ghc
35− compilerVersion: 8.10.3
36− setup-method: hvr-ppa
37+ compilerVersion: 8.10.7
38+ setup-method: ghcup
3739 allow-failure: false
3840 - compiler: ghc-8.8.4
3941 compilerKind: ghc
@@ -66,13 +68,21 @@ jobs:
6668 run: |
6769 apt-get update
6870 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
69− apt-add-repository -y 'ppa:hvr/ghc'
70− apt-get update
71− apt-get install -y "$HCNAME"
72− mkdir -p "$HOME/.ghcup/bin"
73− curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
74− chmod a+x "$HOME/.ghcup/bin/ghcup"
75− "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
71+ if [ "${{ matrix.setup-method }}" = ghcup ]; then
72+ mkdir -p "$HOME/.ghcup/bin"
73+ curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
74+ chmod a+x "$HOME/.ghcup/bin/ghcup"
75+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
76+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
77+ else
78+ apt-add-repository -y 'ppa:hvr/ghc'
79+ apt-get update
80+ apt-get install -y "$HCNAME"
81+ mkdir -p "$HOME/.ghcup/bin"
82+ curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
83+ chmod a+x "$HOME/.ghcup/bin/ghcup"
84+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
85+ fi
7686 env:
7787 HCKIND: ${{ matrix.compilerKind }}
7888 HCNAME: ${{ matrix.compiler }}
@@ -84,11 +94,20 @@ jobs:
8494 echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
8595 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
8696 HCDIR=/opt/$HCKIND/$HCVER
87− HC=$HCDIR/bin/$HCKIND
88− echo "HC=$HC" >> "$GITHUB_ENV"
89− echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
90− echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
91− echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
97+ if [ "${{ matrix.setup-method }}" = ghcup ]; then
98+ HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
99+ echo "HC=$HC" >> "$GITHUB_ENV"
100+ echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
101+ echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
102+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
103+ else
104+ HC=$HCDIR/bin/$HCKIND
105+ echo "HC=$HC" >> "$GITHUB_ENV"
106+ echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
107+ echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
108+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
109+ fi
110+
92111 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
93112 echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
94113 echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -122,6 +141,10 @@ jobs:
122141 repository hackage.haskell.org
123142 url: http://hackage.haskell.org/
124143 EOF
144+ cat >> $CABAL_CONFIG <<EOF
145+ program-default-options
146+ ghc-options: $GHCJOBS +RTS -M3G -RTS
147+ EOF
125148 cat $CABAL_CONFIG
126149 - name: versions
127150 run: |
@@ -198,7 +221,7 @@ jobs:
198221 ${CABAL} -vnormal check
199222 - name: haddock
200223 run: |
201− $CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
224+ $CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
202225 - name: unconstrained build
203226 run: |
204227 rm -f cabal.project.local
.github/workflows/haskell-ci.yml+25−14
@@ -8,9 +8,9 @@
88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11−# version: 0.13.20211030
11+# version: 0.15.20220808
1212#
13−# REGENDATA ("0.13.20211030",["github","cabal.project"])
13+# REGENDATA ("0.15.20220808",["github","cabal.project"])
1414#
1515name: Haskell-CI
1616on:
@@ -23,22 +23,29 @@ on:
2323jobs:
2424 linux:
2525 name: Haskell-CI - Linux - ${{ matrix.compiler }}
26− runs-on: ubuntu-18.04
26+ runs-on: ubuntu-20.04
27+ timeout-minutes:
28+ 60
2729 container:
2830 image: buildpack-deps:bionic
2931 continue-on-error: ${{ matrix.allow-failure }}
3032 strategy:
3133 matrix:
3234 include:
33− - compiler: ghc-9.2.1
35+ - compiler: ghc-9.4.1
3436 compilerKind: ghc
35− compilerVersion: 9.2.1
37+ compilerVersion: 9.4.1
3638 setup-method: ghcup
3739 allow-failure: false
38− - compiler: ghc-9.0.1
40+ - compiler: ghc-9.2.4
3941 compilerKind: ghc
40− compilerVersion: 9.0.1
41− setup-method: hvr-ppa
42+ compilerVersion: 9.2.4
43+ setup-method: ghcup
44+ allow-failure: false
45+ - compiler: ghc-9.0.2
46+ compilerKind: ghc
47+ compilerVersion: 9.0.2
48+ setup-method: ghcup
4249 allow-failure: false
4350 - compiler: ghc-8.10.7
4451 compilerKind: ghc
@@ -98,18 +105,18 @@ jobs:
98105 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
99106 if [ "${{ matrix.setup-method }}" = ghcup ]; then
100107 mkdir -p "$HOME/.ghcup/bin"
101− curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
108+ curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
102109 chmod a+x "$HOME/.ghcup/bin/ghcup"
103− "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
104− "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
110+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
111+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
105112 else
106113 apt-add-repository -y 'ppa:hvr/ghc'
107114 apt-get update
108115 apt-get install -y "$HCNAME"
109116 mkdir -p "$HOME/.ghcup/bin"
110− curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
117+ curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
111118 chmod a+x "$HOME/.ghcup/bin/ghcup"
112− "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
119+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
113120 fi
114121 env:
115122 HCKIND: ${{ matrix.compilerKind }}
@@ -169,6 +176,10 @@ jobs:
169176 repository hackage.haskell.org
170177 url: http://hackage.haskell.org/
171178 EOF
179+ cat >> $CABAL_CONFIG <<EOF
180+ program-default-options
181+ ghc-options: $GHCJOBS +RTS -M3G -RTS
182+ EOF
172183 cat $CABAL_CONFIG
173184 - name: versions
174185 run: |
@@ -256,7 +267,7 @@ jobs:
256267 if [ $((HCNUMVER < 90200)) -ne 0 ] ; then ${CABAL} -vnormal check ; fi
257268 - name: haddock
258269 run: |
259− $CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
270+ $CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
260271 - name: unconstrained build
261272 run: |
262273 rm -f cabal.project.local
uuid-bench/uuid-bench.cabal+2−2
@@ -14,7 +14,7 @@ build-type: Simple
1414
1515-- Benchmarking with older GHCs is not meaningful
1616tested-with:
17− GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.4 || ==8.8.4 || ==8.10.3
17+ GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.4 || ==8.8.4 || ==8.10.7
1818
1919synopsis: UUID benchmarks
2020description:
@@ -42,7 +42,7 @@ library
4242 , hashable >=1.2.7.0 && <1.4
4343 , network-info >=0.2 && <0.3
4444 , random >=1.1 && <1.3
45− , template-haskell >=2.7.0.0 && <2.18
45+ , template-haskell >=2.7.0.0 && <2.20
4646 , text >=1.2.3.0 && <1.3
4747 , time >=1.4 && <1.12
4848
uuid-types/uuid-types.cabal+5−4
@@ -1,7 +1,7 @@
11cabal-version: 1.12
22name: uuid-types
33version: 1.0.5
4−x-revision: 2
4+x-revision: 3
55copyright:
66 (c) 2017-2018 Herbert Valerio Riedel
77 (c) 2008-2014 Antoine Latter
@@ -23,8 +23,9 @@ tested-with:
2323 || ==8.6.4
2424 || ==8.8.4
2525 || ==8.10.7
26− || ==9.0.1
27− || ==9.2.1
26+ || ==9.0.2
27+ || ==9.2.4
28+ || ==9.4.1
2829
2930synopsis: Type definitions for Universally Unique Identifiers
3031description:
@@ -54,7 +55,7 @@ library
5455 , deepseq >=1.3.0.0 && <1.5
5556 , hashable >=1.2.7.0 && <1.5
5657 , random >=1.1 && <1.3
57− , template-haskell >=2.7.0.0 && <2.19
58+ , template-haskell >=2.7.0.0 && <2.20
5859 , text >=1.2.3.0 && <1.3 || >=2.0 && <2.1
5960
6061 exposed-modules: Data.UUID.Types
uuid/uuid.cabal+1−1
@@ -20,7 +20,7 @@ tested-with:
2020 || ==8.6.4
2121 || ==8.8.4
2222 || ==8.10.7
23− || ==9.0.1
23+ || ==9.0.2
2424
2525synopsis:
2626 For creating, comparing, parsing and printing Universally Unique Identifiers