33 workflow_dispatch :
44jobs :
55 build-macos :
6- runs-on : warp-macos-13 -arm64-6x
6+ runs-on : warp-macos-15 -arm64-12x
77 strategy :
88 fail-fast : false
99 matrix :
2323 - name : Cache
2424 uses : Swatinem/rust-cache@v2
2525 with :
26+ prefix-key : " macos-15"
2627 workspaces : |
2728 .
2829 bindings_ffi
3132 - name : Build target
3233 env :
3334 CROSS_NO_WARNINGS : " 0"
34- IPHONEOS_DEPLOYMENT_TARGET : 10
35+ IPHONEOS_DEPLOYMENT_TARGET : " 10 "
3536 run : |
37+ # Set up SDK and clang paths based on target
38+ if [[ "${{ matrix.target }}" == *"-ios-sim"* ]]; then
39+ export SDKROOT=$(xcrun --sdk iphonesimulator --show-sdk-path)
40+ export BINDGEN_EXTRA_CLANG_ARGS="--target=arm64-apple-ios-simulator -isysroot $SDKROOT"
41+ elif [[ "${{ matrix.target }}" == *"-ios" ]]; then
42+ export SDKROOT=$(xcrun --sdk iphoneos --show-sdk-path)
43+ export BINDGEN_EXTRA_CLANG_ARGS="--target=arm64-apple-ios -isysroot $SDKROOT"
44+ elif [[ "${{ matrix.target }}" == "x86_64-apple-ios" ]]; then
45+ export SDKROOT=$(xcrun --sdk iphonesimulator --show-sdk-path)
46+ export BINDGEN_EXTRA_CLANG_ARGS="--target=x86_64-apple-ios-simulator -isysroot $SDKROOT"
47+ fi
3648 cross build --release --target ${{ matrix.target }} --manifest-path bindings_ffi/Cargo.toml
3749 - name : Upload binary
3850 uses : actions/upload-artifact@v5
4355 target/${{ matrix.target }}/release/libxmtpv3.dylib
4456 retention-days : 1
4557 swift :
46- runs-on : warp-macos-13 -arm64-6x
58+ runs-on : warp-macos-15 -arm64-12x
4759 steps :
4860 - name : Checkout
4961 uses : actions/checkout@v5
7789 retention-days : 1
7890 package-swift :
7991 needs : [build-macos, swift]
80- runs-on : warp-macos-13 -arm64-6x
92+ runs-on : warp-macos-15 -arm64-12x
8193 steps :
8294 - name : Checkout
8395 uses : actions/checkout@v5
@@ -102,7 +114,7 @@ jobs:
102114 if-no-files-found : error
103115 package-swift-dynamic :
104116 needs : [build-macos, swift]
105- runs-on : warp-macos-13 -arm64-6x
117+ runs-on : warp-macos-15 -arm64-12x
106118 steps :
107119 - name : Checkout
108120 uses : actions/checkout@v5
@@ -127,7 +139,7 @@ jobs:
127139 if-no-files-found : error
128140 create-release :
129141 needs : [package-swift, package-swift-dynamic]
130- runs-on : warp-macos-13 -arm64-6x
142+ runs-on : warp-macos-15 -arm64-12x
131143 steps :
132144 - name : Checkout
133145 uses : actions/checkout@v5
0 commit comments