mirror of
https://github.com/chrisdone/ini.git
synced 2024-09-11 07:05:32 +03:00
ini.cabal: new maintainer, TypeOperators, tested-with GHC 9.4.1
This commit is contained in:
parent
0891702a93
commit
5939aa6123
53
.github/workflows/haskell-ci.yml
vendored
53
.github/workflows/haskell-ci.yml
vendored
@ -8,18 +8,22 @@
|
|||||||
#
|
#
|
||||||
# For more information, see https://github.com/haskell-CI/haskell-ci
|
# For more information, see https://github.com/haskell-CI/haskell-ci
|
||||||
#
|
#
|
||||||
# version: 0.14.3.20220416
|
# version: 0.15.20220710
|
||||||
#
|
#
|
||||||
# REGENDATA ("0.14.3.20220416",["github","ini.cabal"])
|
# REGENDATA ("0.15.20220710",["github","ini.cabal"])
|
||||||
#
|
#
|
||||||
name: Haskell-CI
|
name: Haskell-CI
|
||||||
on:
|
on:
|
||||||
- push
|
push:
|
||||||
- pull_request
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
linux:
|
||||||
name: Haskell-CI - Linux - ${{ matrix.compiler }}
|
name: Haskell-CI - Linux - ${{ matrix.compiler }}
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes:
|
timeout-minutes:
|
||||||
60
|
60
|
||||||
container:
|
container:
|
||||||
@ -28,9 +32,14 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- compiler: ghc-9.2.2
|
- compiler: ghc-9.4.0.20220623
|
||||||
compilerKind: ghc
|
compilerKind: ghc
|
||||||
compilerVersion: 9.2.2
|
compilerVersion: 9.4.0.20220623
|
||||||
|
setup-method: ghcup
|
||||||
|
allow-failure: true
|
||||||
|
- compiler: ghc-9.2.3
|
||||||
|
compilerKind: ghc
|
||||||
|
compilerVersion: 9.2.3
|
||||||
setup-method: ghcup
|
setup-method: ghcup
|
||||||
allow-failure: false
|
allow-failure: false
|
||||||
- compiler: ghc-9.0.2
|
- compiler: ghc-9.0.2
|
||||||
@ -106,18 +115,19 @@ jobs:
|
|||||||
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
|
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
|
||||||
if [ "${{ matrix.setup-method }}" = ghcup ]; then
|
if [ "${{ matrix.setup-method }}" = ghcup ]; then
|
||||||
mkdir -p "$HOME/.ghcup/bin"
|
mkdir -p "$HOME/.ghcup/bin"
|
||||||
curl -sL https://downloads.haskell.org/ghcup/0.1.17.5/x86_64-linux-ghcup-0.1.17.5 > "$HOME/.ghcup/bin/ghcup"
|
curl -sL https://downloads.haskell.org/ghcup/0.1.17.8/x86_64-linux-ghcup-0.1.17.8 > "$HOME/.ghcup/bin/ghcup"
|
||||||
chmod a+x "$HOME/.ghcup/bin/ghcup"
|
chmod a+x "$HOME/.ghcup/bin/ghcup"
|
||||||
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
|
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
|
||||||
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
|
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
|
||||||
|
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
|
||||||
else
|
else
|
||||||
apt-add-repository -y 'ppa:hvr/ghc'
|
apt-add-repository -y 'ppa:hvr/ghc'
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y "$HCNAME"
|
apt-get install -y "$HCNAME"
|
||||||
mkdir -p "$HOME/.ghcup/bin"
|
mkdir -p "$HOME/.ghcup/bin"
|
||||||
curl -sL https://downloads.haskell.org/ghcup/0.1.17.5/x86_64-linux-ghcup-0.1.17.5 > "$HOME/.ghcup/bin/ghcup"
|
curl -sL https://downloads.haskell.org/ghcup/0.1.17.8/x86_64-linux-ghcup-0.1.17.8 > "$HOME/.ghcup/bin/ghcup"
|
||||||
chmod a+x "$HOME/.ghcup/bin/ghcup"
|
chmod a+x "$HOME/.ghcup/bin/ghcup"
|
||||||
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
|
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
HCKIND: ${{ matrix.compilerKind }}
|
HCKIND: ${{ matrix.compilerKind }}
|
||||||
@ -148,7 +158,7 @@ jobs:
|
|||||||
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
|
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
|
||||||
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
|
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
|
||||||
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
|
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
|
||||||
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
|
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
|
||||||
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
|
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
|
||||||
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
|
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
|
||||||
env:
|
env:
|
||||||
@ -177,6 +187,18 @@ jobs:
|
|||||||
repository hackage.haskell.org
|
repository hackage.haskell.org
|
||||||
url: http://hackage.haskell.org/
|
url: http://hackage.haskell.org/
|
||||||
EOF
|
EOF
|
||||||
|
if $HEADHACKAGE; then
|
||||||
|
cat >> $CABAL_CONFIG <<EOF
|
||||||
|
repository head.hackage.ghc.haskell.org
|
||||||
|
url: https://ghc.gitlab.haskell.org/head.hackage/
|
||||||
|
secure: True
|
||||||
|
root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
|
||||||
|
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
|
||||||
|
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
|
||||||
|
key-threshold: 3
|
||||||
|
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
cat >> $CABAL_CONFIG <<EOF
|
cat >> $CABAL_CONFIG <<EOF
|
||||||
program-default-options
|
program-default-options
|
||||||
ghc-options: $GHCJOBS +RTS -M3G -RTS
|
ghc-options: $GHCJOBS +RTS -M3G -RTS
|
||||||
@ -228,6 +250,9 @@ jobs:
|
|||||||
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
|
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
|
||||||
cat >> cabal.project <<EOF
|
cat >> cabal.project <<EOF
|
||||||
EOF
|
EOF
|
||||||
|
if $HEADHACKAGE; then
|
||||||
|
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
|
||||||
|
fi
|
||||||
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(ini)$/; }' >> cabal.project.local
|
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(ini)$/; }' >> cabal.project.local
|
||||||
cat cabal.project
|
cat cabal.project
|
||||||
cat cabal.project.local
|
cat cabal.project.local
|
||||||
@ -260,7 +285,7 @@ jobs:
|
|||||||
${CABAL} -vnormal check
|
${CABAL} -vnormal check
|
||||||
- name: haddock
|
- name: haddock
|
||||||
run: |
|
run: |
|
||||||
$CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
|
$CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
|
||||||
- name: unconstrained build
|
- name: unconstrained build
|
||||||
run: |
|
run: |
|
||||||
rm -f cabal.project.local
|
rm -f cabal.project.local
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,3 +10,4 @@ tags
|
|||||||
.cabal-sandbox/
|
.cabal-sandbox/
|
||||||
cabal.sandbox.config
|
cabal.sandbox.config
|
||||||
.stack-work/
|
.stack-work/
|
||||||
|
/dist-newstyle/
|
||||||
|
1
cabal.haskell-ci
Normal file
1
cabal.haskell-ci
Normal file
@ -0,0 +1 @@
|
|||||||
|
branches: master
|
14
ini.cabal
14
ini.cabal
@ -6,15 +6,16 @@ description: Quick and easy configuration files in the INI format.
|
|||||||
license: BSD3
|
license: BSD3
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Chris Done
|
author: Chris Done
|
||||||
maintainer: chrisdone@gmail.com
|
maintainer: Andreas Abel
|
||||||
homepage: http://github.com/chrisdone/ini
|
homepage: https://github.com/andreasabel/ini
|
||||||
bug-reports: http://github.com/chrisdone/ini/issues
|
bug-reports: https://github.com/andreasabel/ini/issues
|
||||||
copyright: 2013 Chris Done
|
copyright: 2013 Chris Done
|
||||||
category: Data, Configuration
|
category: Data, Configuration
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
|
|
||||||
tested-with:
|
tested-with:
|
||||||
GHC == 9.2.2
|
GHC == 9.4.1
|
||||||
|
GHC == 9.2.3
|
||||||
GHC == 9.0.2
|
GHC == 9.0.2
|
||||||
GHC == 8.10.7
|
GHC == 8.10.7
|
||||||
GHC == 8.8.4
|
GHC == 8.8.4
|
||||||
@ -41,8 +42,11 @@ library
|
|||||||
|
|
||||||
default-language: Haskell98
|
default-language: Haskell98
|
||||||
default-extensions: OverloadedStrings
|
default-extensions: OverloadedStrings
|
||||||
|
TypeOperators
|
||||||
|
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
|
if impl(ghc >= 8)
|
||||||
|
ghc-options: -Wcompat
|
||||||
|
|
||||||
test-suite ini-test
|
test-suite ini-test
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
@ -57,4 +61,4 @@ test-suite ini-test
|
|||||||
|
|
||||||
source-repository head
|
source-repository head
|
||||||
type: git
|
type: git
|
||||||
location: http://github.com/chrisdone/ini.git
|
location: https://github.com/andreasabel/ini.git
|
||||||
|
Loading…
Reference in New Issue
Block a user