File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 2323 retention-days : 14
2424 path : |
2525 *.dylib
26- *.macos. a
26+ *.a
Original file line number Diff line number Diff line change 44function compile() {
55 local triple=$1
66 local suffix=$2
7+ local os=$3
78
89 cargo build -p powersync_loadable -Z build-std=panic_abort,core,alloc --release --target $triple
910 cargo build -p powersync_static -Z build-std=panic_abort,core,alloc --release --target $triple
1011
11- mv " target/$triple /release/libpowersync.dylib" " libpowersync_$suffix .dylib"
12- mv " target/$triple /release/libpowersync.a" " libpowersync_$suffix .macos .a"
12+ mv " target/$triple /release/libpowersync.dylib" " libpowersync_$suffix .$os . dylib"
13+ mv " target/$triple /release/libpowersync.a" " libpowersync_$suffix .$os .a"
1314}
1415
15- if [ " $1 " = " x64" ]; then
16- compile x86_64-apple-darwin x64
17- else
18- compile aarch64-apple-darwin aarch64
19- fi
16+ case " $1 " in
17+ x64)
18+ compile x86_64-apple-darwin x64 macos
19+ compile x86_64-apple-ios x64 ios-sim
20+ ;;
21+ aarch64)
22+ compile aarch64-apple-darwin aarch64 macos
23+ compile aarch64-apple-ios-sim aarch64 ios-sim
24+ compile aarch64-apple-ios aarch64 ios
25+ ;;
26+ * )
27+ echo " Unknown architecture"
28+ exit 1;
29+ ;;
30+ esac
You can’t perform that action at this time.
0 commit comments