Skip to content

Apache DataFusion SQL Query Engine

ARROW-8194: [CI] Run tests in parallel on Github Actions

Antoine Pitrou0e4e853b3b49
diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml
index e543d828cd..f6b053fbaf 100644
--- a/.github/workflows/cpp.yml
+++ b/.github/workflows/cpp.yml
@@ -193,6 +193,7 @@ jobs:
ARROW_VERBOSE_THIRDPARTY_BUILD: OFF
BOOST_ROOT: C:\local\boost_1_67_0
BOOST_LIBRARYDIR: C:\local\boost_1_67_0\lib64-msvc-14.1\
+ NPROC: 2
steps:
- name: Disable Crash Dialogs
run: |
@@ -257,6 +258,7 @@ jobs:
-DBoost_NO_BOOST_CMAKE=ON
CMAKE_GENERATOR: MSYS Makefiles
CMAKE_UNITY_BUILD: ON
+ NPROC: 2
steps:
- name: Disable Crash Dialogs
run: |
diff --git a/ci/scripts/cpp_test.sh b/ci/scripts/cpp_test.sh
index ca8addc74b..c7e480ee56 100755
--- a/ci/scripts/cpp_test.sh
+++ b/ci/scripts/cpp_test.sh
@@ -36,7 +36,7 @@ case "$(uname)" in
n_jobs=$(sysctl -n hw.ncpu)
;;
*)
- n_jobs=1
+ n_jobs=${NPROC:-1}
;;
esac