-
Notifications
You must be signed in to change notification settings - Fork 168
84 lines (72 loc) · 2.8 KB
/
actions.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: E2E Test
on:
pull_request:
push:
branches:
- master
- stable
jobs:
check:
name: Check on MacOS
runs-on: macos-13
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0
with:
access_token: ${{ github.token }}
- name: Checkout sources
uses: actions/[email protected]
with:
fetch-depth: 50
submodules: 'recursive'
- name: Setup - Xcode
run: sudo xcode-select -switch '/Applications/Xcode_14.3.app/Contents/Developer' && /usr/bin/xcodebuild -version
- name: Install dependencies
run: |
brew install swiftgen
brew install swiftformat
brew install xcbeautify
- name: Get cached Swift Packages managed by Xcode
uses: actions/cache@v3
with:
path: ~/Library/Developer/Xcode/DerivedData/**/SourcePackages/
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Install Rust aarch64-apple-ios target
uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
target: aarch64-apple-ios
components: rust-std
override: true
- name: Install Rust x86_64-apple-ios target
uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
target: x86_64-apple-ios
components: rust-std
override: true
- name: Install uniffi_bindgen
uses: actions-rs/[email protected]
with:
crate: uniffi_bindgen
version: 0.22.0 # Must be in sync with version in Cargo.toml
use-tool-cache: true
- name: Rust Cache
uses: Swatinem/rust-cache@578b235f6e5f613f7727f1c17bd3305b4d4d4e1f # v2.6.1
with:
workspaces: rust -> rust/target
- name: Build iOS and run tests
shell: bash
run: |
cd ios
xcodebuild \
-project PolkadotVault.xcodeproj \
-scheme PolkadotVault \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 14' \
test \
| xcbeautify