diff --git a/.github/workflows/haskell-ci.yml b/.github/workflows/haskell-ci.yml index ab9140d..cf8897e 100644 --- a/.github/workflows/haskell-ci.yml +++ b/.github/workflows/haskell-ci.yml @@ -8,9 +8,9 @@ # # For more information, see https://github.com/haskell-CI/haskell-ci # -# version: 0.14.3 +# version: 0.15.20230115 # -# REGENDATA ("0.14.3",["github","cobot-io.cabal"]) +# REGENDATA ("0.15.20230115",["github","cobot-io.cabal"]) # name: Haskell-CI on: @@ -23,7 +23,7 @@ on: jobs: linux: name: Haskell-CI - Linux - ${{ matrix.compiler }} - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 timeout-minutes: 60 container: @@ -32,9 +32,14 @@ jobs: strategy: matrix: include: - - compiler: ghc-9.2.2 + - compiler: ghc-9.4.4 compilerKind: ghc - compilerVersion: 9.2.2 + compilerVersion: 9.4.4 + setup-method: ghcup + allow-failure: true + - compiler: ghc-9.2.5 + compilerKind: ghc + compilerVersion: 9.2.5 setup-method: ghcup allow-failure: true - compiler: ghc-9.0.2 @@ -54,10 +59,10 @@ jobs: apt-get update apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 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.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup" chmod a+x "$HOME/.ghcup/bin/ghcup" - "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" - "$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) env: HCKIND: ${{ matrix.compilerKind }} HCNAME: ${{ matrix.compiler }} @@ -132,18 +137,19 @@ jobs: - name: install hpack run: | curl -sL https://github.com/sol/hpack/releases/download/0.34.2/hpack_linux.gz > hpack_linux.gz + echo '39cec7b69b913d832738244433b39f65ca797d9d99cfcda22650380262ef7604 hpack_linux.gz' | sha256sum -c - gzip -d < hpack_linux.gz > $HOME/.cabal/bin/hpack rm -f hpack_linux.gz chmod a+x $HOME/.cabal/bin/hpack hpack --version - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: source - - name: generate cabal file + - name: generate cabal from package.yaml run: | - cd $GITHUB_WORKSPACE/source - hpack + PKGDIR_cobot_io_original="$(find "$GITHUB_WORKSPACE/source" -maxdepth 1 -type d -regex '.*/cobot-io-[0-9.]*')" + (cd ${PKGDIR_cobot_io_original} && if [ -e package.yaml ]; then hpack; fi) - name: initial cabal.project for sdist run: | touch cabal.project @@ -159,8 +165,6 @@ jobs: find sdist -maxdepth 1 -type f -name '*.tar.gz' -exec tar -C $GITHUB_WORKSPACE/unpacked -xzvf {} \; - name: generate cabal.project run: | - PKGDIR_cobot_io="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/cobot-io-[0-9.]*')" - echo "PKGDIR_cobot_io=${PKGDIR_cobot_io}" >> "$GITHUB_ENV" rm -f cabal.project cabal.project.local touch cabal.project touch cabal.project.local @@ -181,7 +185,7 @@ jobs: $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all cabal-plan - name: cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }} path: ~/.cabal/store @@ -205,7 +209,7 @@ jobs: ${CABAL} -vnormal check - name: haddock 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 run: | rm -f cabal.project.local diff --git a/package.yaml b/package.yaml index 21dd9d0..91e54b3 100644 --- a/package.yaml +++ b/package.yaml @@ -22,7 +22,8 @@ extra-source-files: tested-with: | GHC ==8.10.7 || ==9.0.2 - || ==9.2.2 + || ==9.2.5 + || ==9.4.4 # Metadata used when publishing your package @@ -44,10 +45,10 @@ dependencies: - filepath - http-conduit >= 2.3 && < 2.4 - hyraxAbif >= 0.2.3.27 && < 0.2.4.0 -- lens >= 4.16 && < 5.2 -- linear >= 1.20 && < 1.22 +- lens >= 4.16 && < 5.3 +- linear >= 1.20 && < 1.23 - megaparsec >= 9.0.1 -- mtl >= 2.2.1 && < 2.3.0 +- mtl >= 2.2.1 && < 2.4 - parser-combinators >= 1.2.1 - split - text >= 1.2.2.1 && < 2.1