Limit the number of simultaneous jobs
We might be trying to overdo it with the number of CPU cores available.
If we limit the jobs, it might speed up the build.
commitd096c8452707297e99779ec57425451e31282158
authorjoneshf <jones3.hardy@gmail.com>
dateSun 26 Aug 2018, 10:27 (8 years ago)
parent3868f30
.circleci/config.yml+2
@@ -13,6 +13,8 @@ jobs:
1313 - run:
1414 name: Compile
1515 command: nix-shell --run 'make sdist test -j2'
16+ environment:
17+ CABAL_BUILD_FLAGS: --jobs=2
1618 - save_cache:
1719 key: v2-nix-{{ checksum "package.yaml" }}
1820 name: Caching nix
Makefile+2−1
@@ -1,5 +1,6 @@
11CABAL ?= cabal
22CABAL_FLAGS ?=
3+CABAL_BUILD_FLAGS ?=
34DIST ?= dist
45GHCID ?= ghcid
56GHCID_FLAGS ?= --ghc-options=-fno-code
@@ -22,7 +23,7 @@ $(CONFIGURE): $(CABAL_FILE)
2223
2324.PHONY: build
2425build $(DOC_TEST): $(CONFIGURE) default.nix
25− $(CABAL) $(CABAL_FLAGS) build
26+ $(CABAL) $(CABAL_FLAGS) build $(CABAL_BUILD_FLAGS)
2627
2728.PHONY: check
2829check: $(CABAL_FILE)