-
Notifications
You must be signed in to change notification settings - Fork 747
Expand file tree
/
Copy pathbitrise.yml
More file actions
136 lines (116 loc) · 4.46 KB
/
Copy pathbitrise.yml
File metadata and controls
136 lines (116 loc) · 4.46 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
---
format_version: "23"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
workflows:
archive_and_export_app:
summary: Create an IPA for the iOS app.
steps:
- activate-ssh-key@4: {}
- git-clone@8: {}
- restore-spm-cache@2: {}
- script@1:
title: Install Rust toolchain for iOS
inputs:
- content: |-
#!/usr/bin/env bash
set -euxo pipefail
export PATH="$HOME/.cargo/bin:$PATH"
if ! command -v rustup >/dev/null 2>&1; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
fi
channel="$(sed -n 's/^channel = "\(.*\)"/\1/p' rust-toolchain.toml)"
rustup toolchain install "$channel" \
--profile minimal \
--component rust-analyzer \
--component rustfmt \
--component clippy
rustup target add --toolchain "$channel" \
aarch64-apple-ios \
aarch64-apple-ios-sim \
x86_64-apple-ios
- script@1:
title: Generate iOS mobile bridge
inputs:
- content: |-
#!/usr/bin/env bash
set -euxo pipefail
export PATH="$HOME/.cargo/bin:$PATH"
channel="$(sed -n 's/^channel = "\(.*\)"/\1/p' rust-toolchain.toml)"
cargo +"$channel" check -p mobile-bridge -p uniffi-bindgen -p xtask
cargo +"$channel" xtask mobile-bridge
- xcode-archive@5:
inputs:
- project_path: $BITRISE_PROJECT_PATH
- scheme: $BITRISE_SCHEME
- distribution_method: $BITRISE_DISTRIBUTION_METHOD
- automatic_code_signing: api-key
- cache_level: none
- save-spm-cache@1: {}
- deploy-to-bitrise-io@2: {}
build:
summary: Build the iOS app for testing.
steps:
- activate-ssh-key@4: {}
- git-clone@8: {}
- restore-spm-cache@2: {}
- script@1:
title: Install Rust toolchain for iOS
inputs:
- content: |-
#!/usr/bin/env bash
set -euxo pipefail
export PATH="$HOME/.cargo/bin:$PATH"
if ! command -v rustup >/dev/null 2>&1; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
fi
channel="$(sed -n 's/^channel = "\(.*\)"/\1/p' rust-toolchain.toml)"
rustup toolchain install "$channel" \
--profile minimal \
--component rust-analyzer \
--component rustfmt \
--component clippy
rustup target add --toolchain "$channel" \
aarch64-apple-ios \
aarch64-apple-ios-sim \
x86_64-apple-ios
- script@1:
title: Generate iOS mobile bridge
inputs:
- content: |-
#!/usr/bin/env bash
set -euxo pipefail
export PATH="$HOME/.cargo/bin:$PATH"
channel="$(sed -n 's/^channel = "\(.*\)"/\1/p' rust-toolchain.toml)"
cargo +"$channel" check -p mobile-bridge -p uniffi-bindgen -p xtask
cargo +"$channel" xtask mobile-bridge
- xcode-build-for-test@3:
inputs:
- project_path: $BITRISE_PROJECT_PATH
- scheme: $BITRISE_SCHEME
- destination: generic/platform=iOS Simulator
- cache_level: none
- save-spm-cache@1: {}
- deploy-to-bitrise-io@2: {}
triggers:
push:
- branch: main
changed_files: "apps/mobile/.*|crates/mobile-bridge/.*|crates/uniffi-bindgen/.*|crates/xtask/.*|Cargo.toml|Cargo.lock|\\.cargo/config.toml|bitrise\\.yml"
pull_request:
- source_branch: "*"
changed_files: "apps/mobile/.*|crates/mobile-bridge/.*|crates/uniffi-bindgen/.*|crates/xtask/.*|Cargo.toml|Cargo.lock|\\.cargo/config.toml|bitrise\\.yml"
meta:
bitrise.io:
stack: osx-xcode-26.2.x
machine_type_id: g2.mac.large
app:
envs:
- BITRISE_PROJECT_PATH: apps/mobile/ios/Anarlog/Anarlog.xcodeproj
opts:
is_expand: false
- BITRISE_SCHEME: Anarlog
opts:
is_expand: false
- BITRISE_DISTRIBUTION_METHOD: ad-hoc
opts:
is_expand: false