Skip to content

Commit 65ac90e

Browse files
Prefetch stackage in ubuntu jobs
1 parent 52c0b16 commit 65ac90e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jobs:
2727
key: repo-cache-${{ runner.os }}-nixpkgs-${{ env.cache-version }}-${{ github.run_id }}-${{ github.run_attempt }}
2828
restore-keys: |
2929
repo-cache-${{ runner.os }}-nixpkgs-${{ env.cache-version }}-
30+
31+
- name: Prefetch Stackage snapshot
32+
shell: bash
33+
run: |
34+
set -e -o pipefail
35+
nix-shell --pure --run "cmd='bazel fetch @stackage//... $BAZEL_ARGS'; \$cmd || \$cmd || \$cmd"
36+
3037
- name: run gazelle_cabal
3138
run: |
3239
nix-shell --pure --run "bazel run $BAZEL_ARGS //:gazelle"

0 commit comments

Comments
 (0)