@@ -11,13 +11,14 @@ permissions:
1111
1212jobs :
1313 cabal-build :
14- name : GHC ${{ matrix.ghc-version }} on ${{ matrix.os }}
14+ name : " GHC ${{ matrix.ghc-version }} on ${{ matrix.os }} (lens: ${{ matrix.lens }}) "
1515 runs-on : ${{ matrix.os }}
1616 strategy :
1717 fail-fast : false
1818 matrix :
1919 os : [ubuntu-latest, windows-latest, macos-latest]
20- ghc-version : ["9.8", "9.6", "9.2"]
20+ ghc-version : ["9.12", "9.10", "9.6", "9.2"]
21+ lens : [true, false]
2122 exclude :
2223 - os : macos-latest
2324 ghc-version : " 9.2"
@@ -43,33 +44,18 @@ jobs:
4344 sudo apt install -y x11proto-xext-dev libx11-dev xorg-dev freeglut3-dev
4445
4546 - name : Configure the build
47+ if : matrix.lens
4648 run : |
4749 cabal configure --enable-tests --enable-benchmarks --disable-documentation
4850 cabal build --dry-run
4951 # The last step generates dist-newstyle/cache/plan.json for the cache key.
5052
51- # IMPT: Uncomment when adding steps after cabal build
52- # - name: Restore cached dependencies
53- # uses: actions/cache/restore@v4
54- # id: cache
55- # env:
56- # key: ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-cabal-${{ steps.setup.outputs.cabal-version }}
57- # with:
58- # path: ${{ steps.setup.outputs.cabal-store }}
59- # key: ${{ env.key }}-plan-${{ hashFiles('**/plan.json') }}
60- # restore-keys: ${{ env.key }}-
61-
62- # - name: Install dependencies
63- # run: cabal build all --only-dependencies
64-
65- # # Cache dependencies already here, so that we do not have to rebuild them should the subsequent steps fail.
66- # - name: Save cached dependencies
67- # uses: actions/cache/save@v4
68- # # Caches are immutable, trying to save with the same key would error.
69- # if: ${{ steps.cache.outputs.cache-primary-key != steps.cache.outputs.cache-matched-key }}
70- # with:
71- # path: ${{ steps.setup.outputs.cabal-store }}
72- # key: ${{ steps.cache.outputs.cache-primary-key }}
53+ - name : Configure the build (no lens)
54+ if : ${{ !matrix.lens }}
55+ run : |
56+ cabal configure --enable-tests --enable-benchmarks --disable-documentation -fdisable-lens
57+ cabal build --dry-run
58+ # The last step generates dist-newstyle/cache/plan.json for the cache key.
7359
7460 - name : Build
7561 run : cabal build all
0 commit comments