Skip to content
Snippets Groups Projects
Commit 5ec49d3d authored by Teo Camarasu's avatar Teo Camarasu
Browse files

nix: set -j1 --cores 1 for first call

The hope is that by limiting concurrent jobs/ CPU usage for the first
call to nix, we will cache the environment without exhausting system
resources.
parent 2124d5f4
No related branches found
No related tags found
No related merge requests found
Pipeline #63143 failed
......@@ -79,7 +79,7 @@ variables:
else
echo "No cache found"
fi
- GHC_TARBALL=$(nix run -f ./ci -c discover_tarball.sh)
- GHC_TARBALL=$(nix run -j1 --cores 1 -f ./ci -c discover_tarball.sh)
rules:
- if: '$UPSTREAM_COMMIT_SHA || $UPSTREAM_PIPELINE_ID'
when: always
......@@ -107,7 +107,7 @@ test-pipeline:
else
echo "No cache found"
fi
- GHC_TARBALL=$(nix run -f ./ci -c discover_tarball.sh)
- GHC_TARBALL=$(nix run -j1 --cores 1 -f ./ci -c discover_tarball.sh)
variables:
UPSTREAM_BRANCH_NAME: master
EXTRA_HC_OPTS: "-dcore-lint"
......@@ -161,7 +161,7 @@ test-9.2:
else
echo "No cache found"
fi
- GHC_TARBALL=$(nix run -f ./ci -c discover_tarball.sh)
- GHC_TARBALL=$(nix run -j1 --cores 1 -f ./ci -c discover_tarball.sh)
variables:
UPSTREAM_BRANCH_NAME: ghc-9.4
EXTRA_HC_OPTS: "-dcore-lint"
......@@ -192,7 +192,7 @@ test-9.4:
else
echo "No cache found"
fi
- GHC_TARBALL=$(nix run -f ./ci -c discover_tarball.sh)
- GHC_TARBALL=$(nix run -j1 --cores 1 -f ./ci -c discover_tarball.sh)
variables:
UPSTREAM_BRANCH_NAME: ghc-9.6
EXTRA_HC_OPTS: "-dcore-lint"
......@@ -239,7 +239,7 @@ test-9.6:
script:
# Install GHC
- echo "Bindist tarball is $GHC_TARBALL"
- nix run -f ./ci -c curl -L "$GHC_TARBALL" > ghc.tar.xz
- nix run -j1 --cores 1 -f ./ci -c curl -L "$GHC_TARBALL" > ghc.tar.xz
- |
nix build \
-f ci/ghc-from-artifact.nix \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment