File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -556,6 +556,42 @@ jobs:
556556 -DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=ggml
557557 cmake --build . --config Release -j $(sysctl -n hw.logicalcpu) -- CODE_SIGNING_ALLOWED=NO
558558
559+ macOS-latest-cmake-visionos :
560+ runs-on : macos-latest
561+
562+ steps :
563+ - name : Clone
564+ id : checkout
565+ uses : actions/checkout@v4
566+
567+ - name : Dependencies
568+ id : depends
569+ continue-on-error : true
570+ run : |
571+ brew update
572+
573+ - name : Build
574+ id : cmake_build
575+ run : |
576+ sysctl -a
577+ mkdir build
578+ cd build
579+ cmake -G Xcode .. \
580+ -DGGML_METAL_USE_BF16=ON \
581+ -DGGML_METAL_EMBED_LIBRARY=ON \
582+ -DLLAMA_BUILD_EXAMPLES=OFF \
583+ -DLLAMA_BUILD_TESTS=OFF \
584+ -DLLAMA_BUILD_SERVER=OFF \
585+ -DCMAKE_SYSTEM_NAME=visionOS \
586+ -DCMAKE_OSX_DEPLOYMENT_TARGET=1.0 \
587+ -DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=ggml
588+ cmake --build . --config Release -j $(sysctl -n hw.logicalcpu) -- CODE_SIGNING_ALLOWED=NO
589+
590+ - name : xcodebuild for swift package
591+ id : xcodebuild
592+ run : |
593+ xcodebuild -scheme llama-Package -destination 'generic/platform=visionOS'
594+
559595 macOS-latest-swift :
560596 runs-on : macos-latest
561597
You can’t perform that action at this time.
0 commit comments