Skip to content

Commit f5cd65d

Browse files
committed
ci(host-numerics): minimize standalone setup
1 parent 33d6840 commit f5cd65d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/host-numerics-ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
runs-on: ubuntu-24.04
2929
steps:
3030
- uses: actions/checkout@v4
31+
with:
32+
sparse-checkout: shared/host-numerics
3133

3234
- uses: actions/setup-python@v5
3335
with:
@@ -44,7 +46,7 @@ jobs:
4446
-DHOST_NUMERICS_BUILD_TESTING=ON \
4547
-DHOST_NUMERICS_BUILD_PYTHON=ON \
4648
-DCMAKE_BUILD_TYPE=Release
47-
cmake --build "${RUNNER_TEMP}/host-numerics-build" --parallel 2
49+
cmake --build "${RUNNER_TEMP}/host-numerics-build" --parallel "$(nproc)"
4850
ctest --test-dir "${RUNNER_TEMP}/host-numerics-build" --output-on-failure
4951
5052
- name: Test installed package
@@ -55,7 +57,7 @@ jobs:
5557
-B "${RUNNER_TEMP}/host-numerics-package-test" \
5658
-G Ninja \
5759
-DCMAKE_PREFIX_PATH="${RUNNER_TEMP}/host-numerics-install"
58-
cmake --build "${RUNNER_TEMP}/host-numerics-package-test" --parallel 2
60+
cmake --build "${RUNNER_TEMP}/host-numerics-package-test" --parallel "$(nproc)"
5961
ctest --test-dir "${RUNNER_TEMP}/host-numerics-package-test" --output-on-failure
6062
PYTHONPATH="$(find "${RUNNER_TEMP}/host-numerics-install" \
6163
-type d -path '*/site-packages' -print -quit)" \

0 commit comments

Comments
 (0)