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 Sep 25, 2024
1 parent a3afe86 commit a3b7a55
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 @@ -120,7 +120,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.
- name: Cache Cabal store
Expand All @@ -141,7 +141,7 @@ jobs:
TMPDIR: ${{ runner.temp }}
TMP: ${{ runner.temp }}
KEEP_WORKSPACE: 1
run: cabal test all --enable-tests --test-show-details=direct -j1
run: cabal test all --enable-tests --test-show-details=direct

# Uncomment the following back in for debugging. Remember to launch a `pwsh` from
# the tmux session to debug `pwsh` issues. And be reminded that the `/msys2` and
Expand Down
5 changes: 4 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@ package bitvec
flags: -simd

tests: True

test-show-details: direct

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

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

-- IMPORTANT
-- Do NOT add more source-repository-package stanzas here unless they are strictly
-- temporary! Please read the section in CONTRIBUTING about updating dependencies.

0 comments on commit a3b7a55

Please sign in to comment.