@@ -38,13 +38,13 @@ jobs:
38
38
- name : Build
39
39
id : make_build
40
40
run : |
41
- CC=gcc-8 make
41
+ CC=gcc-8 make -j $(nproc)
42
42
43
43
- name : Test
44
44
id : make_test
45
45
run : |
46
- CC=gcc-8 make tests
47
- make test
46
+ CC=gcc-8 make tests -j $(nproc)
47
+ make test -j $(nproc)
48
48
49
49
ubuntu-latest-cmake :
50
50
runs-on : ubuntu-latest
66
66
mkdir build
67
67
cd build
68
68
cmake ..
69
- cmake --build . --config Release
69
+ cmake --build . --config Release -j $(nproc)
70
70
71
71
- name : Test
72
72
id : cmake_test
@@ -101,7 +101,7 @@ jobs:
101
101
mkdir build
102
102
cd build
103
103
cmake .. -DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
104
- cmake --build . --config ${{ matrix.build_type }}
104
+ cmake --build . --config ${{ matrix.build_type }} -j $(nproc)
105
105
106
106
- name : Test
107
107
id : cmake_test
@@ -135,7 +135,7 @@ jobs:
135
135
mkdir build
136
136
cd build
137
137
cmake -DLLAMA_MPI=ON ..
138
- cmake --build . --config Release
138
+ cmake --build . --config Release -j $(nproc)
139
139
140
140
- name : Test
141
141
id : cmake_test
@@ -160,13 +160,13 @@ jobs:
160
160
- name : Build
161
161
id : make_build
162
162
run : |
163
- make
163
+ make -j $(sysctl -n hw.logicalcpu)
164
164
165
165
- name : Test
166
166
id : make_test
167
167
run : |
168
- make tests
169
- make test
168
+ make tests -j $(sysctl -n hw.logicalcpu)
169
+ make test -j $(sysctl -n hw.logicalcpu)
170
170
171
171
macOS-latest-cmake :
172
172
runs-on : macos-latest
@@ -189,7 +189,7 @@ jobs:
189
189
mkdir build
190
190
cd build
191
191
cmake -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF ..
192
- cmake --build . --config Release
192
+ cmake --build . --config Release -j $(sysctl -n hw.logicalcpu)
193
193
194
194
- name : Test
195
195
id : cmake_test
@@ -223,7 +223,7 @@ jobs:
223
223
-DLLAMA_BUILD_SERVER=OFF \
224
224
-DCMAKE_SYSTEM_NAME=iOS \
225
225
-DCMAKE_OSX_DEPLOYMENT_TARGET=14.0
226
- cmake --build . --config Release
226
+ cmake --build . --config Release -j $(sysctl -n hw.logicalcpu)
227
227
228
228
macOS-latest-cmake-tvos :
229
229
runs-on : macos-latest
@@ -251,7 +251,7 @@ jobs:
251
251
-DLLAMA_BUILD_SERVER=OFF \
252
252
-DCMAKE_SYSTEM_NAME=tvOS \
253
253
-DCMAKE_OSX_DEPLOYMENT_TARGET=14.0
254
- cmake --build . --config Release
254
+ cmake --build . --config Release -j $(sysctl -n hw.logicalcpu)
255
255
256
256
windows-latest-cmake :
257
257
runs-on : windows-latest
@@ -324,7 +324,7 @@ jobs:
324
324
mkdir build
325
325
cd build
326
326
cmake .. ${{ matrix.defines }}
327
- cmake --build . --config Release
327
+ cmake --build . --config Release -j ${env:NUMBER_OF_PROCESSORS}
328
328
329
329
- name : Add clblast.dll
330
330
id : add_clblast_dll
@@ -415,7 +415,7 @@ jobs:
415
415
mkdir build
416
416
cd build
417
417
cmake .. -DLLAMA_BUILD_SERVER=ON -DLLAMA_CUBLAS=ON -DBUILD_SHARED_LIBS=ON
418
- cmake --build . --config Release
418
+ cmake --build . --config Release -j ${env:NUMBER_OF_PROCESSORS}
419
419
420
420
- name : Determine tag name
421
421
id : tag
@@ -472,7 +472,7 @@ jobs:
472
472
# run: |
473
473
# sudo pkg update
474
474
# sudo pkg install -y gmake automake autoconf pkgconf llvm15 clinfo clover opencl clblast openblas
475
- # gmake CC=/usr/local/bin/clang15 CXX=/usr/local/bin/clang++15
475
+ # gmake CC=/usr/local/bin/clang15 CXX=/usr/local/bin/clang++15 -j `sysctl -n hw.ncpu`
476
476
477
477
release :
478
478
if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
0 commit comments