]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ci : add swift build via xcodebuild (#3482)
authorJhen-Jie Hong <redacted>
Thu, 5 Oct 2023 13:56:21 +0000 (08:56 -0500)
committerGitHub <redacted>
Thu, 5 Oct 2023 13:56:21 +0000 (16:56 +0300)
.github/workflows/build.yml

index 35f84e404fff8cfdf7ce1f704894e87c47d0338b..d3e4651c749e5b0979778e885064d1a8a827e0e6 100644 (file)
@@ -253,6 +253,29 @@ jobs:
             -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0
           cmake --build . --config Release -j $(sysctl -n hw.logicalcpu)
 
+  macOS-latest-swift:
+    runs-on: macos-latest
+
+    strategy:
+      matrix:
+        destination: ['platform=macOS,name=Any Mac', 'platform=iOS,name=Any iOS Device', 'platform=tvOS,name=Any tvOS Device']
+
+    steps:
+      - name: Clone
+        id: checkout
+        uses: actions/checkout@v1
+
+      - name: Dependencies
+        id: depends
+        continue-on-error: true
+        run: |
+          brew update
+
+      - name: xcodebuild for swift package
+        id: xcodebuild
+        run: |
+          xcodebuild -scheme llama -destination "${{ matrix.destination }}"
+
   windows-latest-cmake:
     runs-on: windows-latest