11# This file is generated by `bellroy-github-actions`.
22# Think twice before editing it directly.
3+ env :
4+ CABAL_FILE_RELATIVE_PATH_NO_EXTENSION : github-actions
5+ CABAL_VERSION : 3.14.2.0
6+ GHCUP_VERSION : 0.1.50.2
7+ LANGUAGE_EDITION : Haskell2010
38jobs :
49 generate-matrix :
510 name : Generate matrix from cabal
@@ -18,18 +23,16 @@ jobs:
1823 tests :
1924 container :
2025 image : buildpack-deps:jammy
26+ env :
27+ HCKIND : ghc
28+ HCNAME : ghc-${{ matrix.ghc }}
29+ HCVER : ${{ matrix.ghc }}
2130 name : ${{ matrix.ghc }} on ${{ matrix.os }}
2231 needs :
2332 - generate-matrix
2433 runs-on : ${{ matrix.os }}
2534 steps :
26- - env :
27- CABAL_VERSION : 3.14.2.0
28- GHCUP_VERSION : 0.1.50.2
29- HCKIND : ghc
30- HCNAME : ghc-${{ matrix.ghc }}
31- HCVER : ${{ matrix.ghc }}
32- name : apt
35+ - name : apt
3336 run : |
3437 apt-get update
3538 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
3841 chmod a+x "$HOME/.ghcup/bin/ghcup"
3942 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
4043 "$HOME/.ghcup/bin/ghcup" install cabal $CABAL_VERSION || (cat "$HOME"/.ghcup/logs/*.* && false)
41- - env :
42- CABAL_VERSION : 3.14.2.0
43- GHCUP_VERSION : 0.1.50.2
44- HCKIND : ghc
45- HCNAME : ghc-${{ matrix.ghc }}
46- HCVER : ${{ matrix.ghc }}
47- name : Set PATH and environment variables
44+ - name : Set PATH and environment variables
4845 run : |
4946 echo "$HOME/.cabal/bin" >> $GITHUB_PATH
5047 echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
@@ -141,9 +138,7 @@ jobs:
141138 run : |
142139 mkdir -p unpacked
143140 find sdist -maxdepth 1 -type f -name '*.tar.gz' -exec tar -C $GITHUB_WORKSPACE/unpacked -xzvf {} \;
144- - env :
145- CABAL_FILE_RELATIVE_PATH_NO_EXTENSION : github-actions
146- name : generate cabal.project
141+ - name : generate cabal.project
147142 run : |
148143 PKGDIR_PROJECT="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*\/'$CABAL_FILE_RELATIVE_PATH_NO_EXTENSION'-[0-9.]*')"
149144 echo "PKGDIR_PROJECT=${PKGDIR_PROJECT}" >> "$GITHUB_ENV"
@@ -167,6 +162,7 @@ jobs:
167162 with :
168163 key : ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
169164 path : ~/.cabal/store
165+ restore-keys : ${{ runner.os }}-${{ matrix.ghc }}-
170166 - name : install dependencies
171167 run : |
172168 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --dependencies-only -j2 all
@@ -180,9 +176,7 @@ jobs:
180176 - name : tests
181177 run : |
182178 $CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct
183- - env :
184- LANGUAGE_EDITION : Haskell2010
185- name : doctest
179+ - name : doctest
186180 run : |
187181 cd ${PKGDIR_PROJECT} || false
188182 doctest -X$LANGUAGE_EDITION src
0 commit comments