Skip to content

workflow: let mobai-ci share rebuild the simulator app - #43

Merged
Interlap01 merged 1 commit into
mainfrom
host-rebuild
Oct 27, 2026
Merged

Interlap01 merged 1 commit into
mainfrom
host-rebuild

Conversation

@Interlap01

Copy link
Copy Markdown
Collaborator

The MobAI app can now rebuild the app on a shared CI simulator, and run hot reload sessions there, through a host API that `mobai-ci share` serves next to the simulator. For the rebuild to match the job's own build, the job hands that build to mobai-ci.

  • `ios-share.yml`: the "Build for the simulator" step writes its build to `$RUNNER_TEMP/mobai-build.sh` and runs it. The script logs to stderr and prints only the app's path on stdout. The share step passes `--dir "$GITHUB_WORKSPACE" --rebuild "bash <script>"`.
  • `runner.sh` (Codemagic, Bitrise): the build is split into `build_app`, and a `rebuild` mode runs `prepare` and `build_app` the same way. The share mode passes `--dir` and `--rebuild "bash runner.sh rebuild"`.
  • Both pass the new flags only when `mobai-ci share -help` lists them, so a mobai-ci release from before keeps working.

Checked: `go test ./internal/workflow/...`, `bash -n runner.sh`, the YAML parses, and the build step's script generation run locally with a stand-in `flutter` (stdout carries only the absolute app path).

The simulator build in ios-share.yml is written to a script and run from
there, and runner.sh gains a rebuild mode. Both hand it to mobai-ci share as
--rebuild, with --dir, so the MobAI app can rebuild newer snapshots of the
code on a shared simulator exactly as the job built it. The flags are passed
only when the installed mobai-ci lists them.
@Interlap01
Interlap01 merged commit 820df5d into main Oct 27, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant