mirror of
https://github.com/D-Modem/app.git
synced 2026-11-28 17:38:05 -08:00
The terminal's VT/xterm emulator, its screen, Sixel, the character sets, the keys, the characters' widths and the themes move to shared/'s common Kotlin (the same package: the app's code as it was), their JVM-only calls in common Kotlin's ways (code points, ISO 8859-1, copyInto, Base64.Mime). The Android app has its JVM side; iOS its framework, DModemShared (iOS devices, simulator); Linux native runs the common tests too. TerminalEmulatorTest in common Kotlin (kotlin.test): on the JVM and native; XtermFeaturesTest on the JVM. CI: the shared tests on Linux (JVM, native) and on an iOS simulator (apple.yml). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
# The modem for Apple's systems, and the Kotlin the apps share on iOS: the engine with D-Modem-RE, libre and
|
|
# Mbed TLS built for iOS (devices and simulator) and macOS as an
|
|
# XCFramework (ios/build-native.sh), and its Swift tests run on macOS
|
|
# (ios/DModemSmoke): the modem through its C API, as the iOS app has it.
|
|
#
|
|
# D-Modem-RE is a private submodule: the DMODEM_RE_TOKEN secret (as
|
|
# android.yml's).
|
|
name: Apple
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
engine:
|
|
runs-on: macos-15
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
token: ${{ secrets.DMODEM_RE_TOKEN || github.token }}
|
|
|
|
- name: Ninja
|
|
run: brew install ninja
|
|
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: "21"
|
|
|
|
- uses: gradle/actions/setup-gradle@v4
|
|
|
|
# the Kotlin the apps share (shared/): its common tests on an iOS
|
|
# simulator, its framework built
|
|
- name: Shared Kotlin on iOS
|
|
run: ./gradlew :shared:iosSimulatorArm64Test :shared:linkDebugFrameworkIosArm64
|
|
|
|
- name: Build the XCFramework
|
|
run: ios/build-native.sh
|
|
|
|
- name: Swift tests (macOS)
|
|
run: swift test --package-path ios/DModemSmoke
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: DModemEngine.xcframework
|
|
path: build-apple/DModemEngine.xcframework
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
if: failure()
|
|
with:
|
|
name: build-logs
|
|
path: build-apple/**/_deps/*.log
|