@@ -3,14 +3,14 @@ on: [push, pull_request]
33env :
44 # Bump this number to invalidate the Github-actions cache
55 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
77
88jobs :
99 cabal-test :
1010 name : cabal test - GHC ${{ matrix.ghc-version }}
1111 strategy :
1212 matrix :
13- ghc-version : [944, 961 ]
13+ ghc-version : [96, 98, 910 ]
1414 runs-on : ubuntu-latest
1515 steps :
1616 - uses : actions/checkout@v2
@@ -27,19 +27,19 @@ jobs:
2727 key : cabal-deps-${{ runner.os }}-${{ hashFiles('nix/sources.json') }}-${{ matrix.ghc-version }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('linear-base.cabal') }}-${{ github.sha }}
2828 restore-keys : cabal-deps-${{ runner.os }}-${{ hashFiles('nix/sources.json') }}-${{ matrix.ghc-version }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('linear-base.cabal') }}-
2929 - 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 ==='"
3131 - 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"
3333 - 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"
3535 - 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"
3737 - 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"
3939 - 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"
4141 - 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
4343
4444 ormolu :
4545 name : check formatting with ormolu
5656 key : stack-deps-ormolu-${{ runner.os }}-${{ hashFiles('nix/sources.json') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('stack.yaml.lock') }}-${{ github.sha }}
5757 restore-keys : stack-deps-ormolu-${{ runner.os }}-${{ hashFiles('nix/sources.json') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('stack.yaml.lock') }}-
5858 - 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 ==='"
6060 - 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")'
6262
6363 stack-build :
6464 name : stack build
7575 key : stack-deps-${{ runner.os }}-${{ hashFiles('nix/sources.json') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('stack.yaml.lock', 'linear-base.cabal') }}-${{ github.sha }}
7676 restore-keys : stack-deps-${{ runner.os }}-${{ hashFiles('nix/sources.json') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('stack.yaml.lock', 'linear-base.cabal') }}-
7777 - 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 ==='"
7979 - 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