From 0a84db4c7d833d63a2b4f4fdd1ee667d29d9835b Mon Sep 17 00:00:00 2001 From: danemadsen Date: Tue, 30 Jul 2024 09:14:33 +1000 Subject: [PATCH] actions --- .github/workflows/build-linux.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index c029d79..e96274b 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -24,11 +24,15 @@ jobs: - name: Install CMake run: sudo apt-get update && sudo apt-get install -y cmake + - name: Determine CPU Cores + id: cpu-info + run: echo "CPU_CORES=$(nproc)" >> $GITHUB_ENV + - name: Configure CMake run: cmake -B build -DCMAKE_BUILD_TYPE=Release -DONNXRUNTIME_DIR=${PWD}/onnxruntime - name: Build - run: cmake --build build --config Release + run: cmake --build build --config Release -- -j${{ env.CPU_CORES }} - name: Upload Build Artifacts uses: actions/upload-artifact@v3