Skip to content

Commit 6822436

Browse files
authored
Merge pull request #1006 from IntersectMBO/mgalazyn/chore/enable-multi-core-gha-build
Enable multiple cores in haskell GHA
2 parents e95324d + ef5f3bf commit 6822436

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/haskell.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
# this should be a no-op, but if the cache key was not found we need to build stuff so we can
113113
# cache it for the next step.
114114
- name: Install dependencies
115-
run: cabal build all --enable-tests --only-dependencies -j --ghc-option=-j4
115+
run: cabal build all --enable-tests --only-dependencies
116116

117117
# Always store the cabal cache.
118118
# This can fail (benign failure) if there is already a hash at that key.
@@ -142,7 +142,7 @@ jobs:
142142
TMP: ${{ runner.temp }}
143143
KEEP_WORKSPACE: 1
144144
CREATE_GOLDEN_FILES: 1
145-
run: cabal test all --enable-tests --test-show-details=direct -j1
145+
run: cabal test all --enable-tests --test-show-details=direct
146146

147147
# We want this check to run first because $(git ls-files -m) (see below) returns both
148148
# modified files *and* deleted files. So we want to fail on deleted files first.

cabal.project

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@ package formatting
4848
flags: +no-double-conversion
4949

5050
tests: True
51-
5251
test-show-details: direct
5352

53+
-- enable parallel builds
54+
jobs: $ncpus
55+
semaphore: True
56+
5457
-- Always write GHC env files, because they are needed for ghci.
5558
write-ghc-environment-files: always
5659

0 commit comments

Comments
 (0)