Skip to content

Commit 4d17a7e

Browse files
committed
Add a Github action to warm up the Cachix haskell-language-server
1 parent 0ebf605 commit 4d17a7e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/nix.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Nix
2+
3+
on: [push, pull_request]
4+
jobs:
5+
nix:
6+
runs-on: ${{ matrix.os }}
7+
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
ghc: ['default', 'ghc8102', 'ghc884', 'ghc865']
12+
os: [ubuntu-latest, macOS-latest]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
submodules: true
18+
- uses: cachix/install-nix-action@v12
19+
with:
20+
nix_path: nixpkgs=channel:nixos-20.03
21+
- uses: cachix/cachix-action@v7
22+
with:
23+
name: haskell-language-server
24+
extraPullNames: haskell-ghcide
25+
authToken: '${{ secrets.HLS_CACHIX_AUTH_TOKEN }}'
26+
- run: nix-shell --argstr compiler ${{ matrix.ghc }} --run "cabal update && cabal build"

0 commit comments

Comments
 (0)