Skip to content

Commit 9142bb5

Browse files
committed
attempt to speed up GitHub Action for Nix Shell
1 parent f6c1e48 commit 9142bb5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/nix-shell.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/[email protected]
16-
- uses: cachix/install-nix-action@v16
16+
- uses: cachix/install-nix-action@v17
1717
with:
1818
nix_path: nixpkgs=channel:nixos-21.11
1919
extra_nix_config: |
20-
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
21-
substituters = https://hydra.iohk.io https://cache.nixos.org/
20+
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hackage-server.cachix.org-1:iw0iRh6+gsFIrxROFaAt5gKNgIHejKjIfyRdbpPYevY=
21+
substituters = https://hydra.iohk.io https://cache.nixos.org/ https://hackage-server.cachix.org/
2222
- uses: cachix/cachix-action@v10
2323
with:
2424
# https://nix.dev/tutorials/continuous-integration-github-actions#setting-up-github-actions
2525
name: hackage-server
2626
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
27-
- run: nix-shell --pure --run "cabal update && cabal build all --enable-tests"
27+
- run: nix-shell --pure --run ./.github/workflows/test-nix-shell.sh

.github/workflows/test-nix-shell.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
cabal update hackage.haskell.org,2022-08-27T00:00:00Z
4+
cabal build all --enable-tests

0 commit comments

Comments
 (0)