ci(folio): give the ios leg its jdk, android sdk, just, and a clean app start

This commit is contained in:
pj committed 2026-08-13 01:23:49 +05:30
1 parent dfff790805
commit b7d3b1b7cb
1 file changed
+20 -3
+20 -3
View File
@@ -94,7 +94,6 @@ jobs:
api-level: 34 api-level: 34
target: google_apis target: google_apis
arch: x86_64 arch: x86_64
profile: pixel_6
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
disable-animations: true disable-animations: true
script: .github/scripts/folio-run.sh android script: .github/scripts/folio-run.sh android
@@ -128,8 +127,20 @@ jobs:
with: with:
bun-version: "1.3.13" bun-version: "1.3.13"
- name: Install idb-companion and xcodegen - name: Install idb-companion, xcodegen and just
run: brew install idb-companion xcodegen run: brew install idb-companion xcodegen just
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
# The iOS app builds its Kotlin framework through the folio gradle
# project, which configures :app:androidApp and so needs an Android SDK
# even on this leg.
- name: Set up Android SDK
uses: android-actions/setup-android@v3
# Both asset tarballs are built by the prepare scripts, and the runner # Both asset tarballs are built by the prepare scripts, and the runner
# bundle is an xcodebuild of companion/Sources. Keyed on the scripts and # bundle is an xcodebuild of companion/Sources. Keyed on the scripts and
@@ -158,6 +169,12 @@ jobs:
env: env:
IOS_DEVICE: iPhone 16 Pro IOS_DEVICE: iPhone 16 Pro
# `just ios` leaves the app running, and the run's own clear-data
# reinstall on top of a live app has raced FrontBoard into refusing the
# launch ("app.folio is unknown to FrontBoard") with the run then hanging.
- name: Stop the app before the run
run: xcrun simctl terminate booted app.folio || true
- name: Fuzz folio on the simulator - name: Fuzz folio on the simulator
run: .github/scripts/folio-run.sh ios run: .github/scripts/folio-run.sh ios
env: env: