summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-10-23 15:00:31 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-10-23 15:38:00 -0400
commit70fe3b12852ca7fb5bf1529042754fc75e69baa0 (patch)
tree280e363dd8c787b0e182bc2904b4bb95ab6bc9cb
parente1390e21d6fcfa97838bdaff968d9cfb26261065 (diff)
downloadbfs-70fe3b12852ca7fb5bf1529042754fc75e69baa0.tar.xz
ci: Run tests in parallel on macOS and FreeBSD
-rw-r--r--.github/workflows/ci.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 065fcfd..bc0719e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -56,7 +56,8 @@ jobs:
- name: Run tests
run: |
- make -j$(sysctl -n hw.ncpu) distcheck
+ jobs=$(sysctl -n hw.ncpu)
+ make -j$jobs distcheck JOBS=-j$jobs
freebsd:
name: FreeBSD
@@ -82,4 +83,4 @@ jobs:
mkdir ~/.ssh
printf 'Host %s\n\tStrictHostKeyChecking=accept-new\n\tUser github\n' "$spurion" >~/.ssh/config
rsync -rl --delete . "[$spurion]:bfs"
- ssh "$spurion" '. ~/.ssh/rc; gmake -C bfs -j$(sysctl -n hw.ncpu) distcheck CC=clang16'
+ ssh "$spurion" '. ~/.ssh/rc; gmake -C bfs -j$(nproc) distcheck CC=clang16 JOBS=-j$(nproc)'