32879f45bf
apple / swift (push) Successful in 54s
release / apple (push) Successful in 8m1s
apple / screenshots (push) Failing after 6m42s
ci / rust (push) Successful in 1m25s
ci / web (push) Successful in 42s
android / android (push) Successful in 3m27s
ci / docs-site (push) Successful in 53s
ci / bench (push) Failing after 3m1s
deb / build-publish (push) Successful in 2m33s
decky / build-publish (push) Successful in 12s
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Successful in 4s
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Successful in 5s
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Successful in 4s
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Successful in 4s
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Successful in 2m13s
rpm / build-publish (bazzite, punktfunk-fedora-rpm) (push) Successful in 8m26s
docker / deploy-docs (push) Successful in 6s
rpm / build-publish (fedora-44, punktfunk-fedora44-rpm) (push) Successful in 8m7s
A DEBUG-only "shot mode" renders one mock-populated screen full-bleed (PUNKTFUNK_SHOT_SCENE=<name> -> ScreenshotHostView instead of ContentView), so the OS can screenshot the REAL, fully-rendered UI. tools/screenshots.sh drives it: screencapture for the mac window, `simctl io booted screenshot` for the iOS/iPad/tvOS Simulators, at exactly the App Store Connect sizes. ImageRenderer was tried first and rejected: it can't rasterize this app's chrome (NavigationStack, Form/TabView, Liquid-Glass/NSVisualEffect all render black or the "can't render" placeholder). Capturing the live window/Simulator avoids that. Only the stream hero is synthetic (StreamView needs a live connection) - a synthwave frame + the real glass HUD, overridable via PUNKTFUNK_SHOT_HERO. CI: a new `screenshots` job in apple.yml builds the iOS (+ tvOS best-effort) xcframework slices, runs the harness per platform best-effort, and attaches the result as a single zip artifact (punktfunk-appstore-screenshots). It is isolated from the build/test job and skipped on PRs, so a capture gap (missing Simulator runtime, or no Screen Recording grant for the mac window capture) never reds the core signal. Generated PNGs (clients/apple/screenshots/) are gitignored. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
101 lines
4.5 KiB
YAML
101 lines
4.5 KiB
YAML
# Apple client CI — runs on the self-hosted macOS runner (home-mac-mini-1, host mode;
|
|
# see scripts/ci/setup-macos-runner.sh). Builds the Rust core into
|
|
# PunktfunkCore.xcframework, then builds + tests the Swift package. Network-dependent
|
|
# tests (RemoteFirstLightTests) self-skip without PUNKTFUNK_REMOTE_HOST.
|
|
#
|
|
# A second job (`screenshots`) captures the App Store Connect screenshots of the REAL UI
|
|
# (mac window + iOS/iPad/tvOS Simulators, see clients/apple/tools/screenshots.sh) and attaches
|
|
# them to the run as a single zip artifact (`punktfunk-appstore-screenshots`). It is isolated
|
|
# from the build/test job and best-effort, so a capture gap never reds the core signal.
|
|
name: apple
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
swift:
|
|
runs-on: macos-arm64
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Rust toolchain (self-healing on a fresh runner)
|
|
run: |
|
|
if ! command -v rustup >/dev/null && [ ! -x "$HOME/.cargo/bin/rustup" ]; then
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
|
|
| sh -s -- -y --no-modify-path --profile minimal
|
|
fi
|
|
RUSTUP="$(command -v rustup || echo "$HOME/.cargo/bin/rustup")"
|
|
dirname "$RUSTUP" >> "$GITHUB_PATH"
|
|
"$RUSTUP" target add aarch64-apple-darwin x86_64-apple-darwin
|
|
|
|
- name: Build PunktfunkCore.xcframework
|
|
run: bash scripts/build-xcframework.sh
|
|
|
|
- name: Build (PunktfunkKit + PunktfunkClient app shell)
|
|
working-directory: clients/apple
|
|
run: swift build
|
|
|
|
- name: Test (unit + real-codec round trip; remote tests self-skip)
|
|
working-directory: clients/apple
|
|
run: swift test
|
|
|
|
# App Store screenshots of the real UI, zipped and attached to the run as a build artifact.
|
|
# Skipped on PRs (cost); runs on main pushes + manual dispatch. Needs the build/test job green
|
|
# first — and being a separate job, a capture hiccup (a missing Simulator runtime, or the mac
|
|
# runner lacking Screen Recording permission for the window capture) can never red that signal.
|
|
screenshots:
|
|
needs: swift
|
|
if: gitea.event_name != 'pull_request'
|
|
runs-on: macos-arm64
|
|
timeout-minutes: 90
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Rust toolchain + Apple targets (incl. iOS/tvOS Simulator slices)
|
|
run: |
|
|
if ! command -v rustup >/dev/null && [ ! -x "$HOME/.cargo/bin/rustup" ]; then
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
|
|
| sh -s -- -y --no-modify-path --profile minimal
|
|
fi
|
|
RUSTUP="$(command -v rustup || echo "$HOME/.cargo/bin/rustup")"
|
|
dirname "$RUSTUP" >> "$GITHUB_PATH"
|
|
"$RUSTUP" target add aarch64-apple-darwin x86_64-apple-darwin \
|
|
aarch64-apple-ios aarch64-apple-ios-sim x86_64-apple-ios
|
|
# tvOS slices are Tier-3 (build-std on nightly + rust-src) — best-effort.
|
|
"$RUSTUP" toolchain install nightly --profile minimal --component rust-src || true
|
|
|
|
- name: Build PunktfunkCore.xcframework (mac + iOS; tvOS best-effort)
|
|
run: |
|
|
# Prefer an all-platform framework; fall back to mac + iOS so a tvOS toolchain gap
|
|
# never blocks the iPhone/iPad screenshots.
|
|
if ! BUILD_IOS=1 BUILD_TVOS=1 bash scripts/build-xcframework.sh; then
|
|
echo "::warning::tvOS xcframework slice failed — rebuilding mac + iOS only"
|
|
BUILD_IOS=1 bash scripts/build-xcframework.sh
|
|
fi
|
|
|
|
- name: Capture screenshots (best-effort per platform)
|
|
working-directory: clients/apple
|
|
env:
|
|
SETTLE: "8" # Simulators settle slower than a local run
|
|
run: |
|
|
# Each platform is an independent invocation: a failure (no Simulator runtime, no
|
|
# Screen Recording grant for the mac window capture) skips that platform, not the rest.
|
|
bash tools/screenshots.sh macos || echo "::warning::macOS screenshots skipped"
|
|
bash tools/screenshots.sh ios || echo "::warning::iOS screenshots skipped"
|
|
bash tools/screenshots.sh ipad || echo "::warning::iPad screenshots skipped"
|
|
bash tools/screenshots.sh tvos || echo "::warning::tvOS screenshots skipped"
|
|
echo "Produced:"; ls -la screenshots || true
|
|
|
|
- name: Upload screenshots (zip artifact)
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: punktfunk-appstore-screenshots
|
|
path: clients/apple/screenshots
|
|
if-no-files-found: warn
|
|
retention-days: 30
|