Skip to content

Commit d5d3bb0

Browse files
committed
Retry nix build twice
1 parent 6e79912 commit d5d3bb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190
- cabal-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
191191
- run:
192192
name: Build
193-
command: nix-shell -j4 --run "cabal new-update && cabal new-build -j1 --enable-tests"
193+
command: nix-shell -j4 --run "cabal new-update && (cabal new-build -j1 --enable-tests || cabal new-build -j1 --enable-tests) "
194194
no_output_timeout: 30m
195195
- save_cache:
196196
key: cabal-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
shell: bash
5959
# Retry it three times to workaround compiler segfaults in windows
6060
run: cabal build || cabal build || cabal build
61-
61+
6262
- name: Test func-test suite
6363
shell: bash
6464
env:
@@ -77,4 +77,4 @@ jobs:
7777
# run the tests without parallelism, otherwise tasty will attempt to run
7878
# all functional test cases simultaneously which causes way too many hls
7979
# instances to be spun up for the poor github actions runner to handle
80-
run: cabal test wrapper-test --test-options="-j1"
80+
run: cabal test wrapper-test --test-options="-j1"

0 commit comments

Comments
 (0)