-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (46 loc) · 1.42 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CD iOS
on:
workflow_dispatch:
push:
branches:
- main
permissions:
id-token: write
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: macos-15-xlarge
env:
RUST_TOOLCHAIN: nightly-2024-01-11
RUST_COMPONENTS: "rust-std"
steps:
- uses: RDXWorks-actions/checkout@main
- uses: RDXWorks-actions/setup-xcode@master
with:
xcode-version: "16.0.0"
- name: Install Rust Toolchain for aarch64-apple-darwin
uses: RDXWorks-actions/toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: ${{ env.RUST_COMPONENTS }}
target: aarch64-apple-darwin
- name: Install Rust Toolchain for aarch64-apple-ios
uses: RDXWorks-actions/toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: ${{ env.RUST_COMPONENTS }}
target: aarch64-apple-ios
- name: Install Rust Toolchain for aarch64-apple-ios-sim
uses: RDXWorks-actions/toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: ${{ env.RUST_COMPONENTS }}
target: aarch64-apple-ios-sim
- name: Run iOS build script
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
rustup target add aarch64-apple-darwin aarch64-apple-ios aarch64-apple-ios-sim
sh ./scripts/ios/release.sh