Skip to content

Commit

Permalink
Enable multiple cores in haskell GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
carbolymer committed Jan 7, 2025
1 parent 824a111 commit ef5f3bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
# this should be a no-op, but if the cache key was not found we need to build stuff so we can
# cache it for the next step.
- name: Install dependencies
run: cabal build all --enable-tests --only-dependencies -j --ghc-option=-j4
run: cabal build all --enable-tests --only-dependencies

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

# We want this check to run first because $(git ls-files -m) (see below) returns both
# modified files *and* deleted files. So we want to fail on deleted files first.
Expand Down
5 changes: 4 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ package formatting
flags: +no-double-conversion

tests: True

test-show-details: direct

-- enable parallel builds
jobs: $ncpus
semaphore: True

-- Always write GHC env files, because they are needed for ghci.
write-ghc-environment-files: always

Expand Down

0 comments on commit ef5f3bf

Please sign in to comment.