From f6cecd32451001b25a1a907c467e1ad621ddf401 Mon Sep 17 00:00:00 2001 From: Steven Hahn Date: Mon, 10 Jun 2024 14:33:30 -0400 Subject: [PATCH] run in parallel Signed-off-by: Steven Hahn --- .github/workflows/onyx.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/onyx.yml b/.github/workflows/onyx.yml index 5a31c3a7..5d7144c7 100644 --- a/.github/workflows/onyx.yml +++ b/.github/workflows/onyx.yml @@ -31,6 +31,10 @@ jobs: runs-on: self-hosted needs: [ job_verify_actor ] steps: + - name: Get number of CPU cores + uses: SimenB/github-actions-cpu-cores@v2 + id: cpu-cores + - name: grab main project uses: actions/checkout@v4 with: @@ -154,7 +158,7 @@ jobs: steps: - name: ctest run: | - cd ./KORC/build && ctest --output-on-failure + cd ./KORC/build && ctest -j ${{ steps.cpu-cores.outputs.count }} --output-on-failure job_test_gpu: runs-on: self-hosted @@ -162,5 +166,5 @@ jobs: steps: - name: ctest run: | - cd ./KORC/build && ctest --output-on-failure + cd ./KORC/build && ctest -j ${{ steps.cpu-cores.outputs.count }} --output-on-failure