10
10
push :
11
11
branches :
12
12
- master
13
- paths : ['.github/workflows/**', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu']
13
+ paths : ['.github/workflows/**', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m' ]
14
14
pull_request :
15
15
types : [opened, synchronize, reopened]
16
- paths : ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu']
16
+ paths : ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m' ]
17
17
18
18
env :
19
19
BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
@@ -188,7 +188,7 @@ jobs:
188
188
sysctl -a
189
189
mkdir build
190
190
cd build
191
- cmake -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF ..
191
+ cmake ..
192
192
cmake --build . --config Release -j $(sysctl -n hw.logicalcpu)
193
193
194
194
- name : Test
@@ -253,6 +253,29 @@ jobs:
253
253
-DCMAKE_OSX_DEPLOYMENT_TARGET=14.0
254
254
cmake --build . --config Release -j $(sysctl -n hw.logicalcpu)
255
255
256
+ macOS-latest-swift :
257
+ runs-on : macos-latest
258
+
259
+ strategy :
260
+ matrix :
261
+ destination : ['generic/platform=macOS', 'generic/platform=iOS', 'generic/platform=tvOS']
262
+
263
+ steps :
264
+ - name : Clone
265
+ id : checkout
266
+ uses : actions/checkout@v1
267
+
268
+ - name : Dependencies
269
+ id : depends
270
+ continue-on-error : true
271
+ run : |
272
+ brew update
273
+
274
+ - name : xcodebuild for swift package
275
+ id : xcodebuild
276
+ run : |
277
+ xcodebuild -scheme llama -destination "${{ matrix.destination }}"
278
+
256
279
windows-latest-cmake :
257
280
runs-on : windows-latest
258
281
@@ -265,17 +288,17 @@ jobs:
265
288
matrix :
266
289
include :
267
290
- build : ' noavx'
268
- defines : ' -DLLAMA_BUILD_SERVER=ON -DLLAMA_AVX=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF -DBUILD_SHARED_LIBS=ON'
291
+ defines : ' -DLLAMA_NATIVE=OFF - DLLAMA_BUILD_SERVER=ON -DLLAMA_AVX=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF -DBUILD_SHARED_LIBS=ON'
269
292
- build : ' avx2'
270
- defines : ' -DLLAMA_BUILD_SERVER=ON -DBUILD_SHARED_LIBS=ON'
293
+ defines : ' -DLLAMA_NATIVE=OFF - DLLAMA_BUILD_SERVER=ON -DBUILD_SHARED_LIBS=ON'
271
294
- build : ' avx'
272
- defines : ' -DLLAMA_BUILD_SERVER=ON -DLLAMA_AVX2=OFF -DBUILD_SHARED_LIBS=ON'
295
+ defines : ' -DLLAMA_NATIVE=OFF - DLLAMA_BUILD_SERVER=ON -DLLAMA_AVX2=OFF -DBUILD_SHARED_LIBS=ON'
273
296
- build : ' avx512'
274
- defines : ' -DLLAMA_BUILD_SERVER=ON -DLLAMA_AVX512=ON -DBUILD_SHARED_LIBS=ON'
297
+ defines : ' -DLLAMA_NATIVE=OFF - DLLAMA_BUILD_SERVER=ON -DLLAMA_AVX512=ON -DBUILD_SHARED_LIBS=ON'
275
298
- build : ' clblast'
276
- defines : ' -DLLAMA_BUILD_SERVER=ON -DLLAMA_CLBLAST=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_PREFIX_PATH="$env:RUNNER_TEMP/clblast"'
299
+ defines : ' -DLLAMA_NATIVE=OFF - DLLAMA_BUILD_SERVER=ON -DLLAMA_CLBLAST=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_PREFIX_PATH="$env:RUNNER_TEMP/clblast"'
277
300
- build : ' openblas'
278
- defines : ' -DLLAMA_BUILD_SERVER=ON -DLLAMA_BLAS=ON -DBUILD_SHARED_LIBS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS -DBLAS_INCLUDE_DIRS="$env:RUNNER_TEMP/openblas/include" -DBLAS_LIBRARIES="$env:RUNNER_TEMP/openblas/lib/openblas.lib"'
301
+ defines : ' -DLLAMA_NATIVE=OFF - DLLAMA_BUILD_SERVER=ON -DLLAMA_BLAS=ON -DBUILD_SHARED_LIBS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS -DBLAS_INCLUDE_DIRS="$env:RUNNER_TEMP/openblas/include" -DBLAS_LIBRARIES="$env:RUNNER_TEMP/openblas/lib/openblas.lib"'
279
302
280
303
steps :
281
304
- name : Clone
@@ -414,7 +437,7 @@ jobs:
414
437
run : |
415
438
mkdir build
416
439
cd build
417
- cmake .. -DLLAMA_BUILD_SERVER=ON -DLLAMA_CUBLAS=ON -DBUILD_SHARED_LIBS=ON
440
+ cmake .. -DLLAMA_NATIVE=OFF - DLLAMA_BUILD_SERVER=ON -DLLAMA_CUBLAS=ON -DBUILD_SHARED_LIBS=ON
418
441
cmake --build . --config Release -j ${env:NUMBER_OF_PROCESSORS}
419
442
420
443
- name : Determine tag name
0 commit comments