Repository navigation
Expand file tree
/
Copy pathcodemagic.yaml
More file actions
36 lines (36 loc) · 1.58 KB
/
Copy pathcodemagic.yaml
File metadata and controls
36 lines (36 loc) · 1.58 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
# The build service repository's only file (docs/architecture/store-delivery.md §6).
#
# Codemagic links to a repository that holds just this file, never to the drip monorepo:
# a maker's project code runs on the build machine, so nothing private may be checked out
# there. app-builds starts `android-preview` or `ios-preview` through the Codemagic API with two
# variables, DRIP_RUNNER_URL and DRIP_RUNNER_TOKEN; both workflows run the same script, which
# downloads the runner that app-builds serves (native_runner.dart, next to this file in the
# monorepo) and runs it. There is no triggering section, so nothing but the API starts a build.
#
# `flutter` must equal the monorepo's .fvmrc in every workflow: app-builds' tests hold this copy
# to it, and the runner refuses a machine with any other version. `xcode: latest` is the newest
# release Codemagic offers: App Store Connect only takes builds made with a recent SDK.
workflows:
android-preview:
name: drip Android preview
instance_type: linux_x2
max_build_duration: 40
environment:
flutter: 3.47.0
java: 17
scripts: &runner
- name: drip runner
script: |
set -euo pipefail
curl -fsS --retry 4 --retry-all-errors -H "Authorization: Bearer $DRIP_RUNNER_TOKEN" \
"$DRIP_RUNNER_URL/runner.dart" -o "$HOME/drip_native_runner.dart"
dart "$HOME/drip_native_runner.dart"
ios-preview:
name: drip iPhone build
instance_type: mac_mini_m2
max_build_duration: 60
environment:
flutter: 3.47.0
xcode: latest
cocoapods: default
scripts: *runner