@@ -3,14 +3,14 @@ on: [push, pull_request]
3
3
env :
4
4
# Bump this number to invalidate the Github-actions cache
5
5
cache-invalidation-key : 0
6
- nixpkgs-url : https://github.com/NixOS/nixpkgs/archive/b2737d4980a17cc2b7d600d7d0b32fd7333aca88 .tar.gz
6
+ nixpkgs-url : https://github.com/NixOS/nixpkgs/archive/574d1eac1c200690e27b8eb4e24887f8df7ac27c .tar.gz
7
7
8
8
jobs :
9
9
cabal-test :
10
10
name : cabal test - GHC ${{ matrix.ghc-version }}
11
11
strategy :
12
12
matrix :
13
- ghc-version : [944, 961 ]
13
+ ghc-version : [96, 98, 910 ]
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@v2
@@ -27,19 +27,19 @@ jobs:
27
27
key : cabal-deps-${{ runner.os }}-${{ hashFiles('nix/sources.json') }}-${{ matrix.ghc-version }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('linear-base.cabal') }}-${{ github.sha }}
28
28
restore-keys : cabal-deps-${{ runner.os }}-${{ hashFiles('nix/sources.json') }}-${{ matrix.ghc-version }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('linear-base.cabal') }}-
29
29
- name : Build Nix dependencies
30
- run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --pure --run "echo '=== Nix dependencies installed ==='"
30
+ run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' -- pure --run "echo '=== Nix dependencies installed ==='"
31
31
- name : Init Cabal's config file
32
- run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --pure --run "cabal --config-file=/home/runner/.cabal/config user-config -f init"
32
+ run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' -- pure --run "cabal --config-file=/home/runner/.cabal/config user-config -f init"
33
33
- name : Update Cabal's database
34
- run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --pure --run "cabal update"
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 }}"' --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 --disable-tests --disable-benchmarks --dependencies-only"
37
37
- name : Build
38
- run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --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 --disable-tests --disable-benchmarks"
39
39
- name : Haddock
40
- run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --pure --run "cabal --allow-newer haddock"
40
+ run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' -- pure --run "cabal --allow-newer haddock"
41
41
- name : cabal-docspec
42
- run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --pure --run cabal-docspec
42
+ run : nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' -- pure --run cabal-docspec
43
43
44
44
ormolu :
45
45
name : check formatting with ormolu
56
56
key : stack-deps-ormolu-${{ runner.os }}-${{ hashFiles('nix/sources.json') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('stack.yaml.lock') }}-${{ github.sha }}
57
57
restore-keys : stack-deps-ormolu-${{ runner.os }}-${{ hashFiles('nix/sources.json') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('stack.yaml.lock') }}-
58
58
- name : Build Nix dependencies
59
- run : nix-shell --pure --run "echo '=== Nix dependencies installed ==='"
59
+ run : nix-shell --arg installHls 'false' -- pure --run "echo '=== Nix dependencies installed ==='"
60
60
- name : check formatting
61
- run : nix-shell --pure --run 'stack build ormolu && stack exec ormolu -- -m check $(find . -type f -name "*.hs-boot" -o -name "*.hs")'
61
+ run : nix-shell --arg installHls 'false' -- pure --run 'stack build ormolu && stack exec ormolu -- -m check $(find . -type f -name "*.hs-boot" -o -name "*.hs")'
62
62
63
63
stack-build :
64
64
name : stack build
75
75
key : stack-deps-${{ runner.os }}-${{ hashFiles('nix/sources.json') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('stack.yaml.lock', 'linear-base.cabal') }}-${{ github.sha }}
76
76
restore-keys : stack-deps-${{ runner.os }}-${{ hashFiles('nix/sources.json') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('stack.yaml.lock', 'linear-base.cabal') }}-
77
77
- name : Build Nix dependencies
78
- run : nix-shell --pure --run "echo '=== Nix dependencies installed ==='"
78
+ run : nix-shell --arg installHls 'false' -- pure --run "echo '=== Nix dependencies installed ==='"
79
79
- name : Build
80
- run : nix-shell --pure --run "stack build --pedantic --test --bench --no-run-benchmarks"
80
+ run : nix-shell --arg installHls 'false' -- pure --run "stack build --pedantic --test --bench --no-run-benchmarks"
0 commit comments