Skip to content

Commit 0e2ce03

Browse files
author
DominicGBauer
committed
chore: add test workflow to confirm everything works
1 parent af73f63 commit 0e2ce03

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
on: workflow_dispatch
2+
name: "temp test spm"
3+
jobs:
4+
build:
5+
name: Building iOS
6+
runs-on: macos-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
with:
10+
submodules: true
11+
12+
- name: Setup
13+
run: |
14+
rustup toolchain install nightly-2024-05-18-aarch64-apple-darwin
15+
rustup component add rust-src --toolchain nightly-2024-05-18-aarch64-apple-darwin
16+
rustup target add \
17+
x86_64-apple-darwin \
18+
aarch64-apple-darwin \
19+
aarch64-apple-ios \
20+
aarch64-apple-ios-sim \
21+
x86_64-apple-ios
22+
23+
- name: setup-cocoapods
24+
uses: maxim-lobanov/setup-cocoapods@v1
25+
with:
26+
version: 1.12.1
27+
28+
- name: Build iOS & macOS xcframework
29+
run: |
30+
./tool/build_xcframework.sh
31+
32+
# For SPM package
33+
- name: Compute checksum and update Package.swift
34+
run: |
35+
CHECKSUM=$(swift package compute-checksum powersync-sqlite-core.xcframework.tar.gz)
36+
sed -i '' \
37+
-e "s|url: \".*\"|url: \"https://github.com/${{ github.repository }}/releases/download/0.3.0/powersync-sqlite-core.xcframework.tar.gz\"|" \
38+
-e "s|checksum: \".*\"|checksum: \"$CHECKSUM\"|" \
39+
Package.swift
40+
41+
- name: Commit and push updated Package.swift
42+
run: |
43+
git config user.name github-actions
44+
git config user.email github-actions@github.com
45+
git add Package.swift
46+
git commit -m "Update Package.swift for version 0.3.0"
47+
git push

0 commit comments

Comments
 (0)