forked from Lofelt/NiceVibrations
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.26 KB
/
ios.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
# Builds and tests the core and the iOS framework.
# This workflow runs on macOS, which is not free. Therefore it is run only on merges to main and
# not on every push.
name: ios
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ios-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-v3
- name: Install Rust 1.60.0 toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.60.0
override: true
components: rustfmt, clippy
- name: Install cargo-lipo
run: cargo install cargo-lipo
- name: Install rustup iOS targets
run: rustup target add aarch64-apple-ios x86_64-apple-ios
- name: Install bitcode-enabled Rust iOS toolchain
run: |
wget https://github.com/getditto/rust-bitcode/releases/download/nightly-2021-10-05/rust-ios-arm64-nightly-2021-10-05.zip
unzip rust-ios-arm64-nightly-2021-10-05.zip
cd rust-ios-arm64-nightly-2021-10-05
sh ./install.sh
cd ..
- name: Run CI script
run: ./ci-ios.sh