Skip to content

Commit 7ec889d

Browse files
committed
Don't set $PARALLEL with eval-cores
1 parent 1626e65 commit 7ec889d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,21 +144,29 @@ jobs:
144144
path: flake-regressions/tests
145145
- uses: DeterminateSystems/determinate-nix-action@main
146146
- uses: DeterminateSystems/flakehub-cache-action@main
147-
- env:
148-
PARALLEL: "-P 50%"
147+
- name: Run flake regression tests
148+
env:
149+
PARALLEL: ${{ !contains(matrix.nix_config, 'eval-cores') && '-P 50%' || '-P 1' }}
149150
FLAKE_REGRESSION_GLOB: ${{ matrix.glob }}
150151
NIX_CONFIG: ${{ matrix.nix_config }}
151152
PREFETCH: "1"
152153
GC_INITIAL_HEAP_SIZE: "32G"
153154
run: |
154155
set -x
156+
echo "PARALLEL: $PARALLEL"
157+
echo "NIX_CONFIG: $NIX_CONFIG"
155158
if [ ! -z "${NSC_CACHE_PATH:-}" ]; then
156159
mkdir -p "${NSC_CACHE_PATH}/nix/xdg-cache"
157160
export XDG_CACHE_HOME="${NSC_CACHE_PATH}/nix/xdg-cache"
158161
fi
159162
nix build -L --out-link ./new-nix
160163
export PATH=$(pwd)/new-nix/bin:$PATH
161164
165+
nix config show lazy-trees
166+
nix config show eval-cores
167+
lscpu
168+
nproc
169+
162170
if ! flake-regressions/eval-all.sh; then
163171
echo "Some failed, trying again"
164172
printf "\n\n\n\n\n\n\n\n"

0 commit comments

Comments
 (0)