Repository navigation
vector-gpui: native GPUI client (experiment) #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
JSKitty
wants to merge
1,093
commits into
master
Choose a base branch
from
gpui
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+753,949
−667
Draft
Changes from all commits
Commits
Show all changes
1093 commits
Select commit
Hold shift + click to select a range
a2d9fe2
GPUI Android: tapping off a field hides the keyboard; dialog close fits
claude 0e8603b
GPUI slim: swipe gestures in parity with Tauri
claude 2d43491
GPUI Android CI: the test APK key comes from a repo secret
claude 8e183f3
GPUI Android: the edge claim's JNI signature is not app text
claude b489f20
GPUI: a chat's draft and reply stay with it when a close comes between
claude 905314a
gpui fork: the idle image sweep keeps what a window still shows
claude 83df73f
GPUI: v0.6.0 Preview 1
claude 35835b0
GPUI: a missing fixtures file is an error, not a panic
claude bc82ef4
GPUI slim: the channel drawer draws less translucent fill
claude a839b1f
GPUI: invisible quads aren't drawn; a 3D turntable sleeps with animat…
claude 65e3d94
GPUI Android: with no field focused the view is no text editor
claude 011995e
GPUI onscreen checks: run on a Mac under a data dir of their own
claude eeb42e5
gpui fork: a quad no 8-bit target would show isn't drawn either
claude e5e1125
GPUI onscreen checks: rest in chats without a 3D turntable; a macOS b…
claude f52529a
GPUI calls: the phone's sound route button, as Tauri's RouteButton
claude fe9acd9
GPUI Android: listen after a restart, as Tauri's service-only mode
claude 7c48396
GPUI Android smoke: the boot check reaches the force-stopped app
claude 2cb8f07
GPUI Android: share into Vector from other apps, as Tauri
claude a2d4561
GPUI Android: the badge card tilts with the phone, as Tauri
claude ae0a705
GPUI Android: a locked account's background says when something came,…
claude 1a8f706
GPUI fork: opaque gradients and rounded fills hide what they cover
claude 3a0b8e3
GPUI: blurs draw the thumbhash at its own size and let the GPU stretc…
claude 92f26b5
GPUI Android: one relay while no window is open, as Tauri
claude 2873a50
gpui: preview order, repeated emoji animation, count roll, search go …
claude 8e1ae5f
gpui: a Community reopens to its last voice channel too, as Tauri does
claude 199db15
gpui: allowance for the Sync Report's rekey probe keys [package]
claude e96dcfd
vector-core: a lockdown's audit row is dated when it was sent
JSKitty 4e11594
GPUI: Danger Zone's icon names its file, so search shows it too
JSKitty 8dea5c2
GPUI: the Main Menu's search steps its results with Up and Down
JSKitty 0730c27
GPUI: a Main Menu tile's long title ellipsizes inside its cell
JSKitty 11e7ec4
gpui: wallpapers kept per chat and baked at a fraction of the pane [p…
claude 7a13034
gpui: wallpaper bakes kept on disk, dimmed by a shade, swept with the…
claude 12179cb
gpui: a saved wallpaper shows in the first frame; Main Menu keeps its…
claude 700a45c
gpui: first-frame banners, member counts and link pictures; voice can…
claude 989fc25
gpui: sealed bakes for wallpapers and banners; banners read from disk…
claude 4ae8e50
gpui: custom notification sounds kept sealed
claude 56fd70f
gpui: pasted pictures held in memory, never written [package]
claude 6e7114f
gpui: Android picks held in memory, never copied plain [package]
claude fb8c524
gpui: transcription text selects and copies like message text
claude abc83ca
gpui: transcript copies without hair spaces, text cursor over it
claude 8b50b4f
gpui: kaomoji fonts found off-thread, picker lays out two rows past i…
claude ff68434
gpui: settings and the start menu draw as panes, the attach menu ease…
claude f194f8c
gpui: warm the picker's tab label in its own weight
claude 5c3697b
gpui: a reaction or edit keeps a reader scrolled a line up in place
claude 2e3c0f3
gpui: taps after a fling, in-memory picks that upload, scan-first dev…
claude 71b41e3
gpui: download failures say why in a few words, cut before the retry …
claude e58391c
gpui: a closing modal passes taps through at once, as pointer-events:…
claude e249cac
Merge remote-tracking branch 'origin/master' into gpui
claude 2bf3ab1
gpui: lock nostr-connect 0.45.3 and vector-core 0.13.1 from master
claude 6c0d3b3
gpui: sync backlogs in slices, a moved chat re-sorted alone, the tab …
claude 5776daa
gpui: text shaping survives a view switch
claude 8c5784d
gpui: a playing 3D model redraws its timeline, not the window
claude 81c838b
i18n: translator notes for the download failure strings
claude e1694b1
gpui: clips play at their own rate in the timeline pane; the phone ch…
claude df1bdee
gpui: the phone chat list fills its pane again
claude 8091e5c
gpui: a scrolled list row replays its last drawing instead of rebuilding
claude 7dfcf25
gpui: devctl measures draw phases and pans like a finger
claude 33f95da
gpui: a keyed row lays out at its slot's width, so phone rows truncat…
claude 3393eb1
gpui: a view redrawn only for holding a notified one keeps its inner …
claude 8ade5cc
gpui: a wheel over a code block's bottom edge scrolls the timeline
claude dd8daf3
gpui: keyed replay for timeline rows; whole shortcodes in reply quote…
claude e084924
gpui: backdrop blur, made once per showing, behind the emoji editor's…
claude b313d40
gpui: timeline rows replay through scrollbar updates and scroll-under…
claude c0172b5
gpui: a cached view dirty only for views inside it reuses its drawing…
claude feb2d7b
gpui: Community loading order — the channel on screen and the people …
claude c568f90
gpui: the window root reuses its drawing around the panes that changed
claude c9eb374
gpui: the landing channel's first page stops at one window
claude 49b5e75
core: a channel page reads its epochs and writer addresses at once
claude 1906290
gpui: a Mini App card keeps its players through the mesh's count upda…
claude 3144342
gpui: a cached root renders again when what its panes were built from…
claude 2ae3109
gpui: a new screen redraws every pane with the closures it was render…
claude 1cc3a8e
gpui: a new screen's redraw replays keyed rows whose keys held
claude 378def1
gpui: another chat redraws only the panes that show it
claude db88e9b
gpui: a chat's wallpaper bakes for its own pane, not the last chat's …
claude 92fb811
gpui: themes switch the palette, read from Tauri's theme sheets [pack…
claude 368f33a
gpui: theme gradients keep every stop
claude 13727c4
gpui: a theme's picture covers the whole window, as Tauri's fixed lay…
claude 956b349
gpui: words and many files in one message, staged in the composer [pa…
claude feb9281
gpui: staged tiles' remove and play badges are opaque
claude e69f19b
gpui: a staged Mini App shows its own icon, as its chat card does
claude 8e58c64
gpui: a video seek drag follows only the track that was pressed
JSKitty e4533ba
gpui: an opening chat keys its wallpaper to its own pane size from th…
claude 72b50df
gpui: wallpaper bakes keep the picture's shape, so any bake frames it…
claude 59453c0
gpui: Escape and back leave fullscreen video
JSKitty e3c264c
Merge remote-tracking branch 'origin/gpui' into gpui
JSKitty a096ca3
GPUI: a page opens whole on its first frame
claude cef3d68
GPUI: Requests dot for Community invites; hide categories a member ca…
claude 5eee2c9
GPUI: jumbo emoji keep the sender's line breaks
claude af95a7f
GPUI: a modern upload preview, and cropping before sending
claude 9958582
GPUI: upload preview polish, and composer tiles turn their 3D models
claude 2c59fa2
GPUI: a ban hides the member's join and leave lines at once; system l…
claude 429e98a
GPUI: model tiles fade in over the stage backdrop and render at the s…
claude 01646f5
GPUI: a member with no published profile opens a full profile page
claude ec84de8
GPUI: a new DM opens on its intro, and its first send shows as pendin…
claude 53af377
GPUI: exempt core's not-found error from the i18n audit
claude e3bdc62
GPUI: Cancel stops a download that has not received a byte yet
claude 6807f4e
GPUI: memory-only attachments keep Copy/Save, re-fetch once released,…
JSKitty c950c91
GPUI: search and voice-note autoplay see a released memory-only file …
JSKitty af72dde
GPUI: Private Clipboard keeps copied files in Vector's memory; off, t…
claude 3ada1b6
GPUI: an untouched New Role backs out without asking, and Reset resto…
JSKitty 0a26e3a
GPUI: emoji and pack logos over 256 KB are shrunk to fit instead of r…
JSKitty 51505fb
GPUI: long GIFs and animated WebPs stream at their own pace and drawn…
JSKitty 3a2a702
GPUI: the rail's Communities and their cached icons arrive with the c…
JSKitty a8926cc
GPUI: animated PNGs and HEIF sequences stream like GIFs
JSKitty 013ea41
GPUI: scroll gestures lock to one axis and stay with the scroller tha…
JSKitty 627a025
GPUI: voice stage restyled, foldable and sized to the call, with glow…
JSKitty ebc13e6
GPUI: voice leavers fade out, tiles ease between sizes, cameras show …
JSKitty 441ac93
GPUI: voice stage without boxes, three states that fit the call, stea…
JSKitty c059d5c
GPUI: speaking glows and streaming animations step in the presented f…
JSKitty 807e7cc
GPUI: a chat's 3D model turns in the presented frame once it has fade…
JSKitty b152b32
GPUI: Copy Link on a Community or channel copies a Vector link
claude 5270262
GPUI: a link straight to a video file plays in the chat like a Nostr …
JSKitty 3eb3738
core: a startup census in the log file for the first five minutes aft…
JSKitty 92edf39
GPUI: link card titles wrap under the favicon to two lines; descripti…
claude 0c153ab
GPUI: the startup census line is developer text, so boot_probe.rs get…
JSKitty 79681c9
core: the startup census reads CPU and switches only where getrusage …
claude 78a0023
GPUI: the image viewer keeps right-clicks from the messages behind it
claude a40e729
core: a cold sync dials each Community plane once, a few at a time
JSKitty e7d2d93
core: the channel a reader opens dials its planes without waiting beh…
JSKitty 98c27e5
core: open Community connections are kept for most of a session
JSKitty f0fa385
core: the startup census counts what reaches community relay listener…
JSKitty bbadbda
core: the fan-out bench registers its relay through add_managed_relay…
claude aba628c
vector-lab: a backlog scenario, an overnight gap made on demand for a…
JSKitty 3dfec0a
Unread recounts stop at 1,000 per chat and never overlap
JSKitty 6f78f7a
core: a Community's member activity reads only what arrived since, an…
JSKitty 2ed4e52
core: reads wait their turn for a pooled reader, and the startup cens…
JSKitty 8e404b5
core: a Community's flagged authors are read in one statement, not on…
JSKitty edcffac
gpui: a staged SVG shows its picture in the tray and the file preview…
claude 4f73e54
GPUI: a test that a staged SVG tile shows its drawing, and a broken o…
JSKitty 9d02cc4
gpui (vendored): a Windows credential read never derefs a pointer tha…
claude 267320d
GPUI: each attachment has its own Copy and Save, named by its type, a…
JSKitty a67957b
GPUI (Android): a finger held on an attachment opens its menu, as a r…
JSKitty cbd5f19
GPUI (Android): undo the attachment long-press timer: the fork's long…
JSKitty 2a3f0f1
GPUI: a message's only file keeps its Copy and Save in the message's …
JSKitty 070fdba
i18n: msg-save-kind tells translators what its value is
claude 9b52c94
core: a login's startup census supersedes one still running from an e…
JSKitty 2419088
GPUI: the Moderation panel builds only the member rows in view
JSKitty f6168dd
core: a Community's member activity lives in a table the events trigg…
JSKitty ea373f3
core: settings, Communities and Control wrap ids are read once a sess…
JSKitty 77fe3d8
core: one listener per relay connection hands each read its own subsc…
JSKitty f35a188
GPUI: long lists build only the rows near the view
JSKitty b7b5657
census: a focused page's line says how many connections were dialled …
JSKitty 4e03532
GPUI: a login's Community sweep reads the channel last on screen first
JSKitty f83bd64
core: a Community's member activity is kept for the session until its…
JSKitty 418d444
core: a settings write through the helpers drops that row's copy alone
JSKitty fe843e0
GPUI: the core text allowance counts the new hook and migration errors
JSKitty f596dcd
census: the writers' share of the pool wait, and a focused page's own…
JSKitty 6724e84
census: a focused page's wait for a read slot and for the write conne…
JSKitty 1e62a13
core: a loopback relay is accepted when VECTOR_LOCAL_RELAYS is set
JSKitty c35fd75
census: the settings families written most
JSKitty 30370d9
core: a Control or plane pass that learned nothing new leaves its sta…
JSKitty c2e7a28
devctl: mem reports what malloc and SQLite hold
JSKitty 818f066
core: epoch keys and Control wrap counts are read once a session unti…
JSKitty 4f00b72
devctl: mem names the renderer's GPU bytes by use
JSKitty a819571
core: a Community's member activity fold is kept across logins until …
JSKitty 1500eab
core: whether a Community is held is read once a session until it cha…
JSKitty 40a9ab9
GPUI: the chat list's 30 s clock draws only when a time label changes
JSKitty 1b0fa99
GPUI: vector.log notes what the app holds, by owner, after a launch
JSKitty c0b9c9b
GPUI: declare the memprobe module
JSKitty aa11606
core: a Message keeps its link preview boxed
JSKitty a0efe86
core: signature verifiers are shared, not one per thread
JSKitty 7499d1f
core: a plane connection holds 512 frames for its listener, not 2,048
JSKitty cec0966
core: the plane pool holds a large account's whole sync, so no plane …
JSKitty d7598a9
devctl: regions names the process's dirty memory by VM region tag
JSKitty d302966
gpui: pace frames by CVDisplayLink and the layer's three surfaces
JSKitty ee66626
devctl: malloc held vs live, a relief on demand, and messages held
JSKitty c332e91
gpui: a message's markdown parsed once while nothing it read changes
JSKitty 91fd76f
core: a plane reconcile closes its NIP-77 session before freeing its …
JSKitty b579422
gpui: a view drawn alone inside its parent's reuse keeps its siblings…
JSKitty 7cc9b65
gpui: a voice participant pops onto the stage once, when they join
JSKitty ec31b67
gpui: search that works with you: recent picks, a filter bar, a date …
JSKitty 5194ee7
core: databases read through the page cache, not memory-mapped
JSKitty b4a7c1d
gpui: search filters that pick exactly, a calendar that knows your da…
claude a1e0d39
core: the PIN's key stretch works in memory handed back the moment it…
JSKitty 4858e4e
gpui: search filters that can't stack replace themselves
claude f918d1c
gpui: search lists every matching channel, dressed names rank as plain
claude 8a18245
gpui: search suggestion rows keep their height in a long list
claude 005c5bb
gpui: arrow keys walk the command picker; invocation lines show who r…
claude 68db8bc
devctl: minimize, to measure what a hidden window still draws
JSKitty f5aae79
Whisper fork: leave the submodule's .git out of the copied sources
JSKitty 53b3250
gpui: AVIF, animated AVIF and AV1 video through rav1d; one picture fo…
claude b4ae0f2
gpui: picture decode bench (HEIC and AVIF, AV1 unit alone)
claude 6ad9078
gpui: rav1d's aarch64 assembly header; i18n audit exemptions; bench-o…
JSKitty f856c77
gpui: rav1d links on Android and builds where nasm is missing
claude 06998af
src-tauri: wmi on windows 0.62.2, matching its windows-core
claude 5931a92
gpui: command picker headers stick to the top; the active bar eases b…
claude 8aa809b
gpui: animation frames of 256 colours or fewer held as palette indices
JSKitty 2404898
gpui: HEIF/AVIF decode shares grid tiles across cores, converts rows …
claude 86f4905
gpui: small pictures decode on one thread; rows reuse per-thread buffers
claude 1dee1ad
gpui: unscaled rows go straight out; small downscales stay row by row
claude 10ba3f7
gpui: animated pictures play on compositor layers on macOS
JSKitty 276f9d1
gpui: HEIC and AVIF tiles through VideoToolbox where it wins
JSKitty ccf0403
gpui: lockfile keeps its windows 0.62 resolution beside VideoToolbox
claude 4b8f676
gpui: compositor pictures match the window's drawing under fills and …
JSKitty 2fd0749
gpui: shades over upscaled compositor pictures are baked into their f…
JSKitty f6aa126
gpui: less CPU behind playing pictures and idle windows on macOS
JSKitty f7d9f26
gpui: compositor frames are written in one pass from the frame as held
JSKitty d7eacf2
gpui: animated pictures on DirectComposition visuals on Windows
JSKitty ed4ad47
gpui: each frame's GPU time as a dev probe on macOS
JSKitty 6a7a625
gpui: animated pictures on subsurfaces below the window on Wayland [m…
JSKitty 123f42f
gpui: Wayland plays animated pictures on subsurfaces by default
JSKitty d52c26b
gpui: Android spike, window frames in hardware buffers with GIFs on s…
JSKitty 345df21
gpui: Android draws into its own hardware buffers by default on Vulka…
JSKitty 5004938
gpui: Android GL draws into hardware buffers through EGLImages, opt-i…
JSKitty 4584a80
CI: media-parity sets up Vulkan for Whisper's Windows build [media-pa…
claude 1cad69c
gpui: frames redraw only what changed where a CPU rasterizes [media-p…
JSKitty 860978b
gpui: HEIF/AVIF scale across in YUV, and decode the next band while o…
claude 1ad139d
gpui: small HEIF pictures convert their bands without the decode handoff
JSKitty 5bfdae3
gpui: an animation on a compositor layer keeps its held frame when th…
JSKitty fad0e65
gpui: Windows pictures play below the swap chain through punched hole…
JSKitty 47856b0
gpui: media engine sessions are reused across pictures of one format
JSKitty 2b5c029
gpui: the media engine's frameworks load after launch, not on the fir…
JSKitty de7d2c7
gpui: macOS video decodes on VideoToolbox, drawn through the same con…
JSKitty d1022e9
gpui: video frames the right way up convert on a resolved-tap path
JSKitty 8016a09
gpui_wgpu: damage fingerprint's tile term named variant
claude 0f4b2a5
gpui: macOS video frames convert on the GPU, straight into the atlas
JSKitty 5feffa0
gpui: the FFmpeg-less decode stub takes the GPU flag too
claude 8341d92
gpui: the Metal video converter runs only on Apple GPUs
JSKitty cfbca80
gpui_windows: pictures play on DirectComposition visuals by default
JSKitty a82e313
gpui: Community invites show their bundled logo from known inviters
claude 243bc9c
gpui: animated pictures keep time under hover redraws; layer census
JSKitty 0946a05
gpui: pinned command header spans the panel and keeps its rounded corner
claude ae3b50c
gpui: pictures' edges filter premultiplied on every renderer
JSKitty be818b8
gpui: animations under text or the timeline's fades stay on layers
JSKitty 1ff3a67
gpui: text-size emoji decoded to their box; shared layer rings; census
JSKitty edc8e50
gpui: memory census in the fixtures too
JSKitty f3e9bf3
gpui: a still window lets go of its spare drawables
JSKitty c433782
gpui: the memory census breaks the heap down by owner
JSKitty 5bda9a7
gpui: the heap census counts relays, SQLite and the markdown cache too
JSKitty 46e6621
gpui: the census counts pictures decoded again after eviction, hardwa…
JSKitty e4494d2
gpui: VECTOR_DHAT_FILE names where a dhat build writes its heap report
JSKitty aec622c
i18n: built-in en-GB compiled to static patterns, no Fluent parse or …
JSKitty 8f0ed36
gpui: windowed first roster frame, boxed profiles, quiet community re…
JSKitty edaa234
core: control editions share their text; the open memo keeps the edit…
JSKitty 1e83bba
GPUI: no forced full draw every 30 s while animations step on layers
JSKitty e696f06
GPUI: a shadow over an animated picture blends into its layer's frames
JSKitty 74e9f40
GPUI: a faded animated picture with fills over it stays on its layer
JSKitty 701a0d7
gpui: idle auto-lock in Settings › Security
claude 744567a
Polls in Community channels, Armada-compatible (NIP-88)
claude 04635f1
GPUI: an overlay layer for tooltips and the hover toolbar (macOS)
JSKitty a66a972
gpui: tap a poll's vote count to see who voted for each answer
claude c5d5a4c
GPUI: profiles held as a compact UI profile
JSKitty 3c8db84
GPUI: the overlay draws into IOSurfaces, not a CAMetalLayer
JSKitty cf6cb0f
GPUI: translate messages on this device
claude 1937101
GPUI: quitting during a transcription no longer aborts in ggml's tear…
JSKitty 4c4bd41
Whisper: a quit aborts a running transcription instead of waiting for it
JSKitty 19106a1
GPUI: a hitch census beside the redraw census
JSKitty 792e6b5
GPUI: the overlay draws again only when it changes; hitch census at t…
JSKitty ad59285
GPUI: translations show in place, with a small language pill
claude 1b3dc2e
GPUI: a finished download patches its message as it stands now
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,258 @@ | ||
| name: GPUI Android | ||
|
|
||
| # The GPUI client for Android phones, compiled with the runner's NDK: its platform | ||
| # (crates/vector-gpui/vendor/gpui_android) and the client itself. Its own concurrency group, so | ||
| # it never waits behind or replaces a desktop build. | ||
| on: | ||
| push: | ||
| branches: [gpui] | ||
| paths: | ||
| - 'crates/vector-gpui/**' | ||
| - 'crates/vector-i18n/**' | ||
| - 'crates/vector-core/**' | ||
| - 'crates/vector-calls/**' | ||
| - 'src-tauri/src/**' | ||
| - '.github/workflows/gpui-android.yaml' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: gpui-android-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| RUST_TOOLCHAIN: 1.98.0 | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| check: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - name: platform | ||
| # Expected to fail until the client's desktop-only dependencies are ported. | ||
| - name: client | ||
| experimental: true | ||
| name: check (${{ matrix.name }}) | ||
| continue-on-error: ${{ matrix.experimental || false }} | ||
| runs-on: ubuntu-24.04 | ||
| defaults: | ||
| run: | ||
| working-directory: crates/vector-gpui | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
| targets: aarch64-linux-android | ||
| components: clippy | ||
|
|
||
| - name: NDK toolchain | ||
| run: | | ||
| ndk="$ANDROID_NDK_LATEST_HOME" | ||
| bin="$ndk/toolchains/llvm/prebuilt/linux-x86_64/bin" | ||
| { | ||
| echo "ANDROID_NDK_HOME=$ndk" | ||
| echo "ANDROID_NDK_ROOT=$ndk" | ||
| echo "ANDROID_NDK=$ndk" | ||
| echo "CC_aarch64_linux_android=$bin/aarch64-linux-android26-clang" | ||
| echo "CXX_aarch64_linux_android=$bin/aarch64-linux-android26-clang++" | ||
| echo "AR_aarch64_linux_android=$bin/llvm-ar" | ||
| echo "CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=$bin/aarch64-linux-android26-clang" | ||
| } >> "$GITHUB_ENV" | ||
|
|
||
| - uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| workspaces: crates/vector-gpui -> target | ||
| key: android-aarch64-${{ matrix.name }} | ||
|
|
||
| # Warnings fail only in our own platform crates: -D warnings would reach the vendored ones too. | ||
| - name: Clippy | ||
| if: matrix.name == 'platform' | ||
| shell: bash | ||
| run: | | ||
| cargo clippy --locked -p gpui_platform -p gpui_android --target aarch64-linux-android \ | ||
| --message-format short 2>&1 | tee clippy.log | ||
| ! grep -E '^vendor/gpui_(android|platform)/.*: (warning|error)' clippy.log | ||
|
|
||
| - name: Check | ||
| if: matrix.name == 'client' | ||
| run: cargo check --locked --keep-going --lib --target aarch64-linux-android --no-default-features --features tor,i2p --message-format short | ||
|
|
||
| # The app around the client: Kotlin, manifest and resources, which need no Rust to compile. | ||
| shell: | ||
| runs-on: ubuntu-24.04 | ||
| defaults: | ||
| run: | ||
| working-directory: crates/vector-gpui/android | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - uses: actions/setup-java@v5 | ||
| with: | ||
| distribution: temurin | ||
| java-version: '17' | ||
| cache: gradle | ||
|
|
||
| # Google's copy of Maven Central ahead of every repository: Central's CDN answers some | ||
| # runners 404. An init script, since F-Droid's scanner refuses unknown repositories. | ||
| - name: Maven mirror | ||
| run: | | ||
| mkdir -p ~/.gradle/init.d | ||
| cat > ~/.gradle/init.d/mirror.gradle <<'EOF' | ||
| beforeSettings { settings -> | ||
| def mirror = 'https://maven-central.storage-download.googleapis.com/maven2/' | ||
| settings.pluginManagement.repositories.maven { url = mirror } | ||
| settings.dependencyResolutionManagement.repositories.maven { url = mirror } | ||
| } | ||
| EOF | ||
|
|
||
| - name: Compile | ||
| run: ./gradlew --no-daemon :app:compileDebugKotlin :app:compileReleaseKotlin | ||
|
|
||
| # The phone app: a debug APK for arm64 phones, which installs beside an installed Vector. | ||
| apk: | ||
| needs: shell | ||
| # Expected to fail until the client links for Android. | ||
| continue-on-error: true | ||
| runs-on: ubuntu-24.04 | ||
| defaults: | ||
| run: | ||
| working-directory: crates/vector-gpui/android | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
| targets: aarch64-linux-android | ||
|
|
||
| - uses: actions/setup-java@v5 | ||
| with: | ||
| distribution: temurin | ||
| java-version: '17' | ||
| cache: gradle | ||
|
|
||
| # Google's copy of Maven Central ahead of every repository: Central's CDN answers some | ||
| # runners 404. An init script, since F-Droid's scanner refuses unknown repositories. | ||
| - name: Maven mirror | ||
| run: | | ||
| mkdir -p ~/.gradle/init.d | ||
| cat > ~/.gradle/init.d/mirror.gradle <<'EOF' | ||
| beforeSettings { settings -> | ||
| def mirror = 'https://maven-central.storage-download.googleapis.com/maven2/' | ||
| settings.pluginManagement.repositories.maven { url = mirror } | ||
| settings.dependencyResolutionManagement.repositories.maven { url = mirror } | ||
| } | ||
| EOF | ||
|
|
||
| - uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| workspaces: crates/vector-gpui -> target | ||
| key: android-apk | ||
|
|
||
| # One debug key across runs, so a test APK installs over the last one without an | ||
| # uninstall (which wipes the app's data). The secret holds it for good; the cache is | ||
| # evicted once the repo's caches pass 10 GB, and Gradle then makes a new key. | ||
| - name: Debug key | ||
| id: debug-key | ||
| env: | ||
| KEYSTORE: ${{ secrets.GPUI_ANDROID_DEBUG_KEYSTORE }} | ||
| run: | | ||
| if [ -n "$KEYSTORE" ]; then | ||
| mkdir -p ~/.android | ||
| printf '%s' "$KEYSTORE" | base64 -d > ~/.android/debug.keystore | ||
| echo "secret=1" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "::warning::GPUI_ANDROID_DEBUG_KEYSTORE is not set: this APK's key lasts only as long as the Actions cache" | ||
| fi | ||
|
|
||
| - if: steps.debug-key.outputs.secret != '1' | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.android/debug.keystore | ||
| key: gpui-android-debug-keystore-v1 | ||
|
|
||
| - name: Build | ||
| run: ./gradlew --no-daemon :app:assembleDebug -PvectorNdk="$(basename "$ANDROID_NDK_LATEST_HOME")" | ||
|
|
||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: vector-gpui-android-arm64-debug | ||
| path: crates/vector-gpui/android/app/build/outputs/apk/debug/*.apk | ||
| retention-days: 14 | ||
|
|
||
| # The app on emulated phones (x86_64, software GPU): what it shows after launch, and its log. | ||
| # Android 11 without Vulkan is the GLES path phones with PowerVR GPUs draw with. | ||
| emulator: | ||
| needs: shell | ||
| continue-on-error: true | ||
| runs-on: ubuntu-24.04 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - { api: 34, gpu: vulkan, features: '' } | ||
| - { api: 30, gpu: gles, features: '-feature -Vulkan' } | ||
| name: emulator (API ${{ matrix.api }}, ${{ matrix.gpu }}) | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
| targets: x86_64-linux-android | ||
|
|
||
| - uses: actions/setup-java@v5 | ||
| with: | ||
| distribution: temurin | ||
| java-version: '17' | ||
| cache: gradle | ||
|
|
||
| # Google's copy of Maven Central ahead of every repository: Central's CDN answers some | ||
| # runners 404. An init script, since F-Droid's scanner refuses unknown repositories. | ||
| - name: Maven mirror | ||
| run: | | ||
| mkdir -p ~/.gradle/init.d | ||
| cat > ~/.gradle/init.d/mirror.gradle <<'EOF' | ||
| beforeSettings { settings -> | ||
| def mirror = 'https://maven-central.storage-download.googleapis.com/maven2/' | ||
| settings.pluginManagement.repositories.maven { url = mirror } | ||
| settings.dependencyResolutionManagement.repositories.maven { url = mirror } | ||
| } | ||
| EOF | ||
|
|
||
| - uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| workspaces: crates/vector-gpui -> target | ||
| key: android-emulator | ||
|
|
||
| - name: Build | ||
| working-directory: crates/vector-gpui/android | ||
| run: ./gradlew --no-daemon :app:assembleDebug -PvectorAbis=x86_64 -PvectorNdk="$(basename "$ANDROID_NDK_LATEST_HOME")" | ||
|
|
||
| - name: KVM | ||
| run: | | ||
| echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | ||
| sudo udevadm control --reload-rules | ||
| sudo udevadm trigger --name-match=kvm | ||
|
|
||
| - uses: reactivecircus/android-emulator-runner@v2 | ||
| with: | ||
| api-level: ${{ matrix.api }} | ||
| arch: x86_64 | ||
| target: google_apis | ||
| emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim ${{ matrix.features }} | ||
| disable-animations: true | ||
| script: crates/vector-gpui/android/scripts/emulator-smoke.sh crates/vector-gpui/android/app/build/outputs/apk/debug/app-debug.apk smoke | ||
|
|
||
| - uses: actions/upload-artifact@v4 | ||
| if: always() | ||
| with: | ||
| name: vector-gpui-android-emulator-${{ matrix.api }} | ||
| path: smoke/ | ||
| retention-days: 14 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.