From: Jhen-Jie Hong Date: Thu, 5 Oct 2023 13:56:21 +0000 (-0500) Subject: ci : add swift build via xcodebuild (#3482) X-Git-Tag: upstream/0.0.4488~3163 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=0745384449fe8d89d6d99c93153569079e853247;p=pkg%2Fggml%2Fsources%2Fllama.cpp ci : add swift build via xcodebuild (#3482) --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 35f84e40..d3e4651c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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