File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -33,17 +33,15 @@ jobs:
33
33
- name : Update Cabal's database
34
34
run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal update"
35
35
- name : Build Cabal's dependencies
36
- run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal build --allow-newer --disable -tests --disable -benchmarks --dependencies-only"
36
+ run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal build --allow-newer --enable -tests --enable -benchmarks --dependencies-only"
37
37
- name : Build
38
- run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal build --allow-newer --disable -tests --disable -benchmarks"
38
+ run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal build --allow-newer --enable -tests --enable -benchmarks"
39
39
- name : Haddock
40
- run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal haddock --allow-newer"
40
+ run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal haddock --allow-newer --enable-tests --enable-benchmarks "
41
41
- name : cabal-docspec
42
42
run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal-docspec"
43
- - name : Build benchmarks
44
- run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal build linear-base:bench:bench --allow-newer"
45
43
- name : Run benchmarks
46
- run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal bench --allow-newer 2>&1 | tee benchmark_ghc${{ matrix.ghc-version }}.txt"
44
+ run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal bench --allow-newer --enable-tests --enable-benchmarks 2>&1 | tee benchmark_ghc${{ matrix.ghc-version }}.txt"
47
45
- name : Upload benchmark results
48
46
uses : actions/upload-artifact@v3
49
47
with :
Original file line number Diff line number Diff line change 1
1
packages : *.cabal
2
-
3
- -- We need the `--alloc-newer` flag on cabal invocations because otherwise a build plan cannot be found.
4
- -- But as of 2024-09-11, the latest version of the `unix` 2.8.5.1 package has a conditional bound on `filepath` depending on the `os-string` flag (see https://hackage.haskell.org/package/unix-2.8.5.1/dependencies).
5
- -- With no extra parameter or setting, we get a dependency conflict on `filepath`, as other libs use a version of `filepath` incompatible with the one `unix` wants.
6
- -- Setting `filepath` to 1.4.2.2 fixes that.
7
- constraints : filepath == 1.4.2.2
You can’t perform that action at this time.
0 commit comments