Skip to content

Commit

Permalink
try more ios targets
Browse files Browse the repository at this point in the history
  • Loading branch information
asg017 committed Sep 12, 2024
1 parent 1e3115d commit 3b898c5
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,35 @@ jobs:
path: dist/*.so
build-ios-extension:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
platforms:
[
{ name: ios-arm64, target: arm64-apple-ios, sdk: iphoneos },
{ name: ios-x86_64, target: x86_64-apple-ios, sdk: iphoneos },
{
name: ios-simulator-arm64,
target: arm64-apple-ios-simulator,
sdk: iphonesimulator,
},
{
name: ios-simulator-x86_64,
target: x86_64-apple-ios-simulator,
sdk: iphonesimulator,
},
]
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- run: ./scripts/vendor.sh

- run: make CFLAGS="-target arm64-apple-ios -isysroot $(xcrun -sdk iphoneos --show-sdk-path) -DNDEBUG=1" loadable static
- run: make CFLAGS="-target ${{ matrix.platforms.target }} -isysroot $(xcrun -sdk ${{ matrix.platforms.sdk }} --show-sdk-path) -fembed-bitcode -DNDEBUG=1" loadable static
- uses: actions/upload-artifact@v4
with:
name: sqlite-vec-ios-testing-extension
name: sqlite-vec-${{ matrix.platforms.name }}-extension
path: dist/*
build-macos-x86_64-extension:
runs-on: macos-12
Expand Down

0 comments on commit 3b898c5

Please sign in to comment.