Skip to content

Commit 44bcab4

Browse files
committed
Use nproc instead of action step for getting CPU cores
1 parent db625e3 commit 44bcab4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ jobs:
4747
repository: ggml-org/llama.cpp
4848
path: repo
4949

50-
- name: Get number of CPU cores
51-
uses: SimenB/github-actions-cpu-cores@v2
52-
id: cpu-cores
53-
5450
- name: Setup Alpine Linux
5551
uses: jirutka/setup-alpine@v1
5652
with:
@@ -59,7 +55,7 @@ jobs:
5955
- name: CMake
6056
run: |
6157
cmake repo -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS="-static" -DGGML_NATIVE=OFF -DGGML_STATIC=ON -DGGML_RPC=ON -DGGML_CCACHE=OFF -DGGML_OPENMP=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_CURL=OFF -DBUILD_SHARED_LIBS=OFF ${{ matrix.ssl_defines }} ${{ matrix.avx_defines }}
62-
cmake --build build --config Release --target llama-server --target rpc-server -j ${{ steps.cpu-cores.outputs.count }}
58+
cmake --build build --config Release --target llama-server --target rpc-server -j $(nproc)
6359
strip build/bin/*
6460
shell: alpine.sh {0}
6561

0 commit comments

Comments
 (0)