Skip to content

Commit 064010b

Browse files
committed
Limit parallelism in CI
The jobs seem to be getting killed. Possibly too much mem usage. Limit to 2 at once to squeeze by.
1 parent 0bc3719 commit 064010b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333

3434
- name: Build all checks and outputs
3535
run: |
36-
bin/test-releases
37-
bin/test-php-versions
36+
bin/test-releases 2
37+
bin/test-php-versions 2
3838
nix develop ./dev -c om ci
3939
cd dev
4040
nix develop -c om ci

bin/test-php-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
parallel -j "$(nproc)" --tagstring "{1}" --line-buffer '
4+
parallel -j "${1:-$(nproc)}" --tagstring "{1}" --line-buffer '
55
echo "Testing {1}"
66
PHP_PACKAGE="{1}" nix flake check --impure ./dev
77
' ::: php84 php83 php82 php81

bin/test-releases

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -euo pipefail
33

44
# Test releases against the oldest and newest supported PHP versions
5-
parallel -j "$(nproc)" --tagstring "{1} {2}" --line-buffer '
5+
parallel -j "${1:-$(nproc)}" --tagstring "{1} {2}" --line-buffer '
66
echo "Testing {2} with {1}"
77
PHP_PACKAGE="{1}" STATIC_DEPLOY_PACKAGE="{2}" nix flake check --impure ./dev
88
' ::: php84 php81 ::: plugin pluginWpOrg

0 commit comments

Comments
 (0)