Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit d9e47ca

Browse files
committed
Automatically create iOS XCFramework
1 parent 39c24de commit d9e47ca

File tree

4 files changed

+52
-2
lines changed

4 files changed

+52
-2
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Build
22
on:
3-
pull_request:
3+
# pull_request:
44
push:
55
branches:
66
- main

.github/workflows/ios-release.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: iOS-Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
branches:
8+
- ios-release
9+
10+
jobs:
11+
12+
release:
13+
runs-on: macos-latest
14+
steps:
15+
- uses: maxim-lobanov/setup-xcode@v1
16+
with:
17+
xcode-version: latest-stable
18+
19+
- uses: actions/checkout@v2
20+
21+
- uses: Swatinem/rust-cache@v1
22+
23+
- uses: actions-rs/toolchain@v1
24+
with:
25+
profile: minimal
26+
toolchain: stable
27+
target: x86_64-apple-ios
28+
29+
- uses: actions-rs/toolchain@v1
30+
with:
31+
profile: minimal
32+
toolchain: stable
33+
target: aarch64-apple-ios
34+
35+
- name: Build XCFramework
36+
run: make build-ios
37+
38+
- uses: ncipollo/release-action@v1
39+
with:
40+
artifacts: "arti-rest.xcframework.zip"
41+
bodyFile: "ios/body.md"
42+
token: ${{ secrets.GITHUB_TOKEN }}
43+
commit: ios-release
44+
tag: 0.0.4

.github/workflows/test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Test
22
on:
3-
pull_request:
3+
# pull_request:
44
push:
55
branches:
66
- main
@@ -22,6 +22,7 @@ jobs:
2222
name: cargo test
2323
with:
2424
command: test
25+
2526
test-script:
2627
runs-on: ubuntu-latest
2728
strategy:

ios/body.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# XCFramework release
2+
3+
This is the XCFramework that will be used by the `arti-ios` repository.
4+
Of course you can also import just this XCFramework right in your app.
5+
But the `arti-ios` repository has some nice wrappers and error-handling.

0 commit comments

Comments
 (0)