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
912
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.
+381,546
−433
Draft
Changes from all commits
Commits
Show all changes
912 commits
Select commit
Hold shift + click to select a range
83f906a
GPUI: rounded overflow clips its contents to the rounding, as CSS does
claude d0fb083
GPUI: chat list, channel list and rail fade at their scroll edges
claude fb969ce
gpui: mark reads at the newest message from someone else, and leave r…
claude bac24b0
GPUI: sideways and fixed fades in the content mask, and Tauri's remai…
claude bdcf8b9
GPUI: a resting pointer no longer redraws the row under it every frame
claude 369660b
GPUI: downloadable languages: signed index, packs by hash, Language p…
claude b32a5bb
GPUI languages: the index on Vector's relays too, for networks that c…
claude 84b34a2
languages CI: every language's coverage in the job summary, on pull r…
claude e4d276e
GPUI language offer: ask for a network first instead of failing the d…
claude 31cb971
GPUI message search: on-device scan with Discord-style filters
claude 5b2b15f
GPUI: vector-core's text in the active language
claude 7b18834
Message search: 200k-message bench, chat-scoped and oldest-first scan…
claude c727e56
GPUI: Chinese and Japanese read right
claude 3915f95
GPUI: size probe for files sent without one, and their screen's volume
claude 6ea8b37
GPUI: GIFs composite on one canvas
claude dedd513
fdroid-scan: apply the recipe's scandelete to the scanned copy
claude ae62b20
Merge remote-tracking branch 'origin/gpui' into claude/project-thread…
claude 44fb853
GPUI fixtures: the video call shares its screen's sound
claude 8873362
GPUI: animations sleep after a minute in a background window
claude 7ee308e
GPUI: emoji names and search in the reader's language
claude 7b37e93
Message search: core's search errors said through coretext
claude c955f76
GPUI: drop the redundant refresh on refocus
claude 12e8aea
GPUI: text from others can't crash a parser
claude 324d97d
GPUI: pictures claiming huge sizes decode to nothing
claude 791e7eb
search.ftl: say what the oldest-first count's values are
claude b3d5d37
GPUI: deep, long and damaged content can't crash or stall
claude baaabac
GPUI: hidden-preview notifications in the reader's language
claude e0c536b
GPUI: damaged models, audio and GIF frames can't crash the app
claude d722bba
GPUI: damaged still pictures and picture bombs can't crash the app
claude d20e57a
GPUI: a message full of links can't freeze the timeline
claude fd77e90
GPUI: damaged videos and picture bombs in avatars can't crash the app
claude cc7d2c9
GPUI: fuzz received colour and time spans; a slow parser fails the suite
claude e464e2e
GPUI: long messages measure in one pass
claude 43d1135
GPUI: link previews read only the links they try
claude f7ece70
GPUI: times on the relays' clock, as the desktop keeps them
claude eee9206
GPUI: a panicked thread can't take the window down through a lock
claude 867191c
GPUI: long names and statuses fit their place, as on the desktop
claude 8f30da4
GPUI: a long channel or category name stays clear of its buttons
claude 2008eda
GPUI: a very long message draws only what is on screen
claude 60df3cf
GPUI: names show on one line, as the desktop shows them
claude 967722c
GPUI: file names and song tags show on one line
claude 1a6dbcd
GPUI: a long role name ellipsises in the mini profile, as on the desktop
claude 8983865
GPUI: long section headings ellipsise, and a long "Reposted by" wraps
claude d10df2a
GPUI: emoji pack titles show on one line
claude e15345d
GPUI: Mini App names and bot command descriptions show on one line
claude 7cfcb7d
GPUI: a link preview's description stops at three lines, as on the de…
claude 082c78d
GPUI: clamped text stops at its line count and ends in an ellipsis
claude b557044
Search panel: gray tones, accent only on matched words; drop the foot…
claude 35ab6b5
Member pane search: members and the Community's messages, compact
claude 13a5d1c
GPUI: on-screen regression suite over devctl
claude d132da0
GPUI: on-screen suite runs on macOS too
claude c803d59
GPUI: on-screen suite checks hover and toast fades end
claude ca2870c
GPUI: on-screen suite takes a window size
claude 20cc7b5
Merge remote-tracking branch 'origin/gpui' into claude/project-thread…
claude a47de0d
GPUI: on-screen suite runs in another language
claude c8c46b9
Merge pull request #105 from VectorPrivacy/claude/project-thread-hwfih4
JSKitty 9248431
GPUI: on-screen suite leaves the language alone at the end
claude 1662b3f
GPUI: search results show messages as the timeline does
claude 2274735
GPUI: JPEG thumbnails decode with no per-row allocation and no copies
claude 472e1f0
GPUI: member list section chevrons centre on their label
claude 8bd9b0a
GPUI: image tiles get their border from region writes, not a padded copy
claude ebf0c74
GPUI: MKV and M4V attachments play inline like MP4, WebM and MOV
claude 6973dfe
gpui: Cmd/Ctrl+K and F search from wherever focus is
claude 59b8018
gpui: view HEIF and HEIC pictures, play their sequences
claude 789c1e0
gpui: rail folder bars show the whole way through opening
claude 89b10ff
gpui: HEIF rows read planes looked up once per tile
claude b8a04ed
gpui: resample keeps its small filters and float row per thread
claude 3b3f8f7
gpui: rail folder members keep their place while it opens
claude a22bd85
gpui: member list bot mark in grey, as Tauri's widescreen styles draw it
claude d772fc2
gpui: spoilers cover again when their chat is reopened
claude 4c4caf1
gpui: .heics and .heifs as pictures, and HEIC fixtures in a chat
claude a049d23
gpui: photos resized as they decode, and decoded once
claude 7e1d733
gpui: JPEG decoding takes its NEON path on Apple Silicon
claude 4faa4cb
gpui: whole-scale JPEGs through the streamed decode too
claude 09c2ae4
gpui: PNG pictures decoded and resized a row at a time
claude 5b16ac3
gpui: whole-scale JPEG bench times each decode and resize on its own
claude f96e7af
gpui: row resizer folds each row in place, and rounds without a call
claude 34750b6
gpui: resizer's across pass on SSE2 and NEON, four pixels at a time
claude 76083f3
gpui: JPEG rows handed on per block row, no whole component planes
claude 9e99a15
gpui: path textures only while paths are drawn
claude 1e57e16
gpui: release bundles named Vector with vector:// registered; path te…
claude 86e94a4
GPUI takes over every desktop installer type [package]
claude 7456c9e
GPUI supports macOS 12 and later, Intel Macs included
claude 8c52b11
A macOS availability audit for the client's floor
claude 1e13e7c
Screen audio in calls waits for macOS 13; the availability audit read…
claude a944941
GPUI's Android platform
claude 27c7566
Windows package builds link with MSVC after building FFmpeg [package]
claude d7a33ce
The client is a library under a thin binary, so Android can load it
claude 5dff439
Android touches keep the time Android saw them; keyboard edits carry …
claude a4b3f13
The Android app around the GPUI client
claude 74e3959
Android leaves out the desktop's clipboard, screen capture and webview
claude b6a2855
Calls start with the audio engine running, as the desktop client's do
claude 938cffc
Android: the desktop client's call, microphone and permission glue
claude dc2c6b8
Android: Tauri's data folder, a writable temp folder, and a debug APK…
claude 4dac3c3
Android CI: the APK's cargo task reads the build's settings, and an e…
claude 7305787
Android CI: the emulator run's log and screenshot in the job log too
claude ee41c46
Android: no desktop title strip, and the app keeps clear of the syste…
claude eb7b821
GPUI Android: message notifications, Run in Background, call answer f…
claude 1d2cf37
GPUI Android: the system document picker behind prompt_for_paths
claude 7f27290
GPUI Android: open files in other apps, Save to Download/Vector
claude 9a80879
GPUI Android emulator check: Login and typing, to see keyboard text a…
claude 2d81571
GPUI Android: resolve Maven Central through Google's mirror first
claude 368f359
GPUI Android: offer Run in Background once after sign-in
claude b94610d
GPUI Android: unlock with the phone's fingerprint or screen lock
claude 538162b
GPUI Android: accounts that sign with Amber (NIP-55)
claude 5bd9aef
GPUI Android: in-app updates
claude 3a177d1
GPUI Android: Back steps back through the app
claude a196cdb
GPUI Android: Notify When Closed
claude cf9b6fc
GPUI Android: the app's output reaches logcat
claude 465e702
GPUI Android: draw with GLES on PowerVR GPUs
claude b7d3294
GPUI Android: build plugins also come from Google's Central mirror
claude b7aeb1f
GPUI: GLES without vertex storage buffers draws through textures
claude 99e25bc
GPUI Android: debug builds keep their log in Download/Vector
claude 199f9b8
GPUI Android: the Maven mirror lives in CI, not the build
claude b361cfa
GPUI: images draw on GLES
claude ab6e05b
GPUI Android: test APKs log fully and keep the log file
claude 6a433f7
GPUI Android: the emulator check shows the test log file
claude 512613f
GPUI Android: the test log file opens as logging starts
claude 9f6d49a
Android: draw boxes on GPUs that refuse the quads vertex shader
claude 678b27a
Android: 3D models share the window's device, RGBA frames on GL
claude f62e4d2
Video: steady time readout, pop-up volume on narrow players
claude 9f61647
Android test builds: a log per launch, slow frames timed
claude 2370ad3
Android: monospace text no longer crashes the app
claude 01b07e5
gpui_wgpu: debug.vector.gpu forces GL, or GL with the lean quads stage
claude c083037
gpui_wgpu: quad pixels in the solid interior skip loading the quad
claude 433aa8e
gpui_wgpu: paths rasterized before the main pass when their batches d…
claude 8d09f4f
gpui: Metal rasterizes paths before the main pass too, through Scene:…
claude 8a09555
gpui_wgpu: image pixels clear of rounding and the mask skip loading t…
claude 417071b
GPUI: a memory warning sheds every decoded picture off screen
claude e426e7f
gpui_wgpu: path vertices padded to 112 bytes; a lasting GPU error reb…
claude d197d3b
GPUI Android CI: the debug key persists across runs
claude d89fc87
GPUI login: Back closes its sheets first; the explainer fits a phone;…
claude 6bb5322
GPUI: eases started by child views get their next frame
claude 2f6217c
GPUI: the root pump wraps every screen, login and booting included
claude ff3d4de
gpui_wgpu: a GL driver's quads verdict is kept between launches
claude ac718a4
GPUI: red/blue swaps as masked u32s, and atlas uploads without a copy
claude 220ed7c
gpui: branchless, divide-free premultiply around animated-frame resizes
claude bf1b184
Merge master into gpui: v0.5.2-3, stereo calls, composer undo
claude 6caebba
gpui: master's last Tauri changes: undo steps, Messages home, adaptiv…
claude 821b18a
gpui wgpu: bordered atlas tiles written from the source, no queued copy
claude 2135469
gpui Android: the shell's notifications and prompts in the app's lang…
claude c14563f
gpui: lockfile follows vector-core 0.13.0
claude 99864c8
gpui Android: keep Strings through R8, as Rust calls it by name
claude 3e12edf
gpui Android: an F-Droid recipe, smoke-built in the fdroid workflow
claude f0437bb
fdroid workflow: a read-only token
claude fe8ed1d
gpui F-Droid recipe: fetch every platform's crates
claude 9199952
gpui F-Droid recipe: thin LTO, which a 16 GB builder can hold
claude 0449a1e
gpui android: survive resume on GL surfaces
claude 1c86766
gpui android: GPU self-test in test builds
claude a992229
gpui shaders: no instance loads per pixel
claude 6e5e124
GPUI network explainer: the logo keeps its size on a short phone
claude abf8c3c
gpui shaders: build on PowerVR's GL again
claude 16f469a
GPUI video: the volume pop-up's knob grows a halo and glides
claude ea7def7
gpui shaders: half floats without the f16 capability
claude 3a888ac
gpui shaders: separable shadow blur away from the corners; volume kno…
claude 9e541d8
gpui shaders: glyph gamma terms once per sprite
claude 92e6583
gpui shaders: rounded corners keep most of the solid interior
claude e2f6ed9
gpui android: a frame summary every 5 s, and the self-test measures o…
claude 51eb417
gpui scene: drop what a later opaque rectangle hides whole
claude 2d4bb6b
gpui scene: trim plain fills to what a cover leaves showing
claude 72d0c2d
gpui scene: a cover across a fill's middle leaves its two ends
claude e617e19
GPUI login: paint the camera and its fade only where they show
claude 31ef99e
gpui scene: a cover inside a fill leaves the frame round it
claude 8574e38
GPUI invites: the join popup shows the Community's logo
claude 94a0a90
GPUI invites: a logo file that has gone keeps the placeholder
claude 952454b
GPUI: picture and video previews in search results
claude cf630b2
GPUI: centre search result kind icons on the time
claude b5baa4e
GPUI: search previews held as stills, viewer above search
claude 2ffd1f8
GPUI: search kind icons centred on the time's digits
claude a671343
Merge remote-tracking branch 'origin/master' into gpui
claude 404fe55
GPUI: v0.5.2 voice link badges and whole-history catch-up reads
claude 4021269
GPUI: scroll passes through the jump pills; search thumbs freed on close
claude a4d0579
GPUI Android: camera for call video and the QR scanner
claude 1877914
GPUI Android test builds: start on fixtures by system property
claude 7561bcc
GPUI Android test builds: the QR scanner opens the camera on fixtures
claude c850b3c
GPUI: the QR scanner says why the camera didn't open
claude b9f93b3
GPUI Android: draw at once after idle or an overrun, not at the next …
claude 2cd2dbe
GPUI Android: TalkBack reads GPUI's accessibility tree
claude 40649e6
GPUI phone layout: name its icon buttons for screen readers
claude 5ff19d6
GPUI Android: first-phone fixes
claude ad83ec4
gpui fork: a long press is a right click; a finger's pan keeps its axis
claude 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 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.