]> Sergey Matveev's repositories - bfs.git/commitdiff
ci: Run tests in parallel on macOS and FreeBSD
authorTavian Barnes <tavianator@tavianator.com>
Mon, 23 Oct 2023 19:00:31 +0000 (15:00 -0400)
committerTavian Barnes <tavianator@tavianator.com>
Mon, 23 Oct 2023 19:38:00 +0000 (15:38 -0400)
.github/workflows/ci.yml

index 065fcfd8c8b1e6c7f4c32994d48e16106324c220..bc0719e4d2cb365f7603119bf97194f7908ede4c 100644 (file)
@@ -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)'