@@ -455,6 +455,159 @@ jobs:
455455 build-linux-cross :
456456 uses : ./.github/workflows/build-linux-cross.yml
457457
458+ macOS-latest-cmake-ios :
459+ runs-on : macos-latest
460+ if : false
461+
462+ steps :
463+ - name : Clone
464+ id : checkout
465+ uses : actions/checkout@v4
466+
467+ - name : ccache
468+ uses :
hendrikmuhs/[email protected] 469+ with :
470+ key : macOS-latest-cmake-ios
471+ evict-old-files : 1d
472+
473+ - name : Dependencies
474+ id : depends
475+ continue-on-error : true
476+ run : |
477+ brew update
478+
479+ - name : Build
480+ id : cmake_build
481+ run : |
482+ sysctl -a
483+ cmake -B build -G Xcode \
484+ -DGGML_METAL_USE_BF16=ON \
485+ -DGGML_METAL_EMBED_LIBRARY=ON \
486+ -DLLAMA_BUILD_COMMON=OFF \
487+ -DLLAMA_BUILD_EXAMPLES=OFF \
488+ -DLLAMA_BUILD_TOOLS=OFF \
489+ -DLLAMA_BUILD_TESTS=OFF \
490+ -DLLAMA_BUILD_SERVER=OFF \
491+ -DCMAKE_SYSTEM_NAME=iOS \
492+ -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 \
493+ -DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=ggml
494+ cmake --build build --config Release -j $(sysctl -n hw.logicalcpu) -- CODE_SIGNING_ALLOWED=NO
495+
496+ macOS-latest-cmake-tvos :
497+ runs-on : macos-latest
498+ if : false
499+
500+ steps :
501+ - name : Clone
502+ id : checkout
503+ uses : actions/checkout@v4
504+
505+ - name : ccache
506+ uses :
hendrikmuhs/[email protected] 507+ with :
508+ key : macOS-latest-cmake-tvos
509+ evict-old-files : 1d
510+
511+ - name : Dependencies
512+ id : depends
513+ continue-on-error : true
514+ run : |
515+ brew update
516+
517+ - name : Build
518+ id : cmake_build
519+ run : |
520+ sysctl -a
521+ cmake -B build -G Xcode \
522+ -DGGML_METAL_USE_BF16=ON \
523+ -DGGML_METAL_EMBED_LIBRARY=ON \
524+ -DLLAMA_BUILD_COMMON=OFF \
525+ -DLLAMA_BUILD_EXAMPLES=OFF \
526+ -DLLAMA_BUILD_TOOLS=OFF \
527+ -DLLAMA_BUILD_TESTS=OFF \
528+ -DLLAMA_BUILD_SERVER=OFF \
529+ -DCMAKE_SYSTEM_NAME=tvOS \
530+ -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 \
531+ -DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=ggml
532+ cmake --build build --config Release -j $(sysctl -n hw.logicalcpu) -- CODE_SIGNING_ALLOWED=NO
533+
534+ macOS-latest-cmake-visionos :
535+ runs-on : macos-latest
536+ if : false
537+
538+ steps :
539+ - name : Clone
540+ id : checkout
541+ uses : actions/checkout@v4
542+
543+ - name : Dependencies
544+ id : depends
545+ continue-on-error : true
546+ run : |
547+ brew update
548+
549+ - name : Build
550+ id : cmake_build
551+ run : |
552+ sysctl -a
553+ cmake -B build -G Xcode \
554+ -DGGML_METAL_USE_BF16=ON \
555+ -DGGML_METAL_EMBED_LIBRARY=ON \
556+ -DLLAMA_BUILD_COMMON=OFF \
557+ -DLLAMA_BUILD_EXAMPLES=OFF \
558+ -DLLAMA_BUILD_TOOLS=OFF \
559+ -DLLAMA_BUILD_TESTS=OFF \
560+ -DLLAMA_BUILD_SERVER=OFF \
561+ -DCMAKE_SYSTEM_NAME=visionOS \
562+ -DCMAKE_OSX_DEPLOYMENT_TARGET=1.0 \
563+ -DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=ggml
564+ cmake --build build --config Release -j $(sysctl -n hw.logicalcpu) -- CODE_SIGNING_ALLOWED=NO
565+
566+ macOS-latest-swift :
567+ runs-on : macos-latest
568+ if : false
569+
570+ strategy :
571+ matrix :
572+ destination : ['generic/platform=macOS', 'generic/platform=iOS', 'generic/platform=tvOS']
573+
574+ steps :
575+ - name : Clone
576+ id : checkout
577+ uses : actions/checkout@v4
578+
579+ - name : ccache
580+ uses :
hendrikmuhs/[email protected] 581+ with :
582+ key : macOS-latest-swift
583+ evict-old-files : 1d
584+
585+ - name : Dependencies
586+ id : depends
587+ continue-on-error : true
588+ run : |
589+ brew update
590+
591+ - name : Build llama.cpp with CMake
592+ id : cmake_build
593+ run : |
594+ sysctl -a
595+ cmake -B build -G Xcode \
596+ -DGGML_METAL_USE_BF16=ON \
597+ -DGGML_METAL_EMBED_LIBRARY=ON \
598+ -DLLAMA_CURL=OFF \
599+ -DLLAMA_BUILD_EXAMPLES=OFF \
600+ -DLLAMA_BUILD_TOOLS=OFF \
601+ -DLLAMA_BUILD_TESTS=OFF \
602+ -DLLAMA_BUILD_SERVER=OFF \
603+ -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
604+ cmake --build build --config Release -j $(sysctl -n hw.logicalcpu)
605+
606+ - name : xcodebuild for swift package
607+ id : xcodebuild
608+ run : |
609+ ./build-xcframework.sh
610+
458611 windows-msys2 :
459612 runs-on : windows-latest
460613 if : false
0 commit comments