From a3b7a55977e8128af9000f16016088a344cb6697 Mon Sep 17 00:00:00 2001 From: Mateusz Galazyn Date: Thu, 5 Sep 2024 18:39:07 +0200 Subject: [PATCH] Enable multiple cores in haskell GHA --- .github/workflows/haskell.yml | 4 ++-- cabal.project | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 0659eeda12..0f0b51c4ce 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -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 @@ -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 diff --git a/cabal.project b/cabal.project index 8a4ac9d9ef..ad862869f6 100644 --- a/cabal.project +++ b/cabal.project @@ -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.