From f9f2eb670bc3551b2b5cd84676bd9353d8d04cdd Mon Sep 17 00:00:00 2001 From: hyochan Date: Wed, 18 Nov 2026 02:14:43 +0900 Subject: [PATCH 1/2] fix(ci): build Android on the Codemagic Mac instance The OpenIAP team plan offers no Linux instance, so linux_x2 builds fail before they start. The Mac image carries the Android SDK, so both Android workflows move to mac_mini_m2. Co-Authored-By: Claude Opus 5.5 --- codemagic.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/codemagic.yaml b/codemagic.yaml index b392f0d..5aa6ce1 100644 --- a/codemagic.yaml +++ b/codemagic.yaml @@ -11,6 +11,9 @@ # and read every credential from the secure `bookoo_production` group. # Codemagic builds a pull request from the yaml on its source branch, so PR # webhooks stay off until fork builds are proven unable to reach that group. +# +# Every workflow runs on mac_mini_m2: the OpenIAP team plan offers no Linux +# instance, and the Mac image carries the Android SDK as well. definitions: environment: &environment @@ -89,7 +92,7 @@ workflows: android-qa-release: name: Android QA release build - instance_type: linux_x2 + instance_type: mac_mini_m2 max_build_duration: 60 environment: <<: *environment @@ -180,7 +183,7 @@ workflows: android-production: name: Android production (Play internal draft) - instance_type: linux_x2 + instance_type: mac_mini_m2 max_build_duration: 90 environment: <<: *production_environment From 74aa9b542c49cd4bf60761696a5bce23ad9b98b5 Mon Sep 17 00:00:00 2001 From: hyochan Date: Wed, 18 Nov 2026 03:26:18 +0900 Subject: [PATCH 2/2] fix(ci): load the EAS environment before the production guards eas-cli evaluates app.config.ts before it loads the environment. With EAS_BUILD_PROFILE=production already set, the config's required ad-id guard saw no EXPO_PUBLIC_* values and env:exec failed, which stopped the first ios-production run at that step. Unset the EAS_BUILD_* names for that one command; every later step still runs the guards. Co-Authored-By: Claude Opus 5.5 --- codemagic.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/codemagic.yaml b/codemagic.yaml index 5aa6ce1..5bc358d 100644 --- a/codemagic.yaml +++ b/codemagic.yaml @@ -44,7 +44,11 @@ definitions: name: Load the EAS production environment script: | set -euo pipefail - bunx eas-cli@23.0.0 env:exec production --non-interactive \ + # eas-cli evaluates app.config.ts before it loads the environment, so + # the production guards keyed on EAS_BUILD_* would reject the empty + # EXPO_PUBLIC_* values here. They apply again from the next step on. + env -u EAS_BUILD_PROFILE -u EAS_BUILD_PLATFORM \ + bunx eas-cli@23.0.0 env:exec production --non-interactive \ 'node scripts/codemagic/print-public-env.mjs' \ | grep -E '^EXPO_PUBLIC_[A-Z0-9_]+=' > /tmp/bookoo-public.env test -s /tmp/bookoo-public.env