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
518
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.
+306,479
−97
Draft
Changes from all commits
Commits
Show all changes
518 commits
Select commit
Hold shift + click to select a range
3eea4ff
GPUI: the desktop's 45-second housekeeping
claude 4591cf8
GPUI: an open profile refreshes every 30 seconds, as on desktop
claude 416c24e
GPUI: text field undo, word moves and the composer's formatting keys
claude 5bd6529
GPUI: leaving a committed Add Profile restores the account's own network
claude 275f15b
GPUI: warn when no relay is reachable, and refresh our badges on change
claude bb7d6be
GPUI: a crashed Mini App page closes its window and says so
claude 82551db
GPUI: channel Lockdown in the channel editor
claude 1e4a582
GPUI: member list by role, per-chat drafts, send and join notices
claude fcca924
GPUI: chat author names in their role colour
claude ab5c218
GPUI: say why the remembered account would not open at boot
claude d83c16f
GPUI: tests for the role graph behind the roster
claude eccf584
GPUI: in-app updates from a release's own GPUI bundle
claude f0c31cc
GPUI: folded channel categories and roster sections kept across resta…
claude 305e5ca
GPUI: the slim overview's icon picks, crops and saves in place
claude 9d74e4b
GPUI: resizable chat list pane, and the remaining desktop tooltips
claude 1e0f024
GPUI: communities reopen to their last channel; Messages reopens the …
claude 322933a
GPUI: remember whether the member list is open, account-wide
claude 3290244
GPUI: compress videos on send with the desktop's encoder
claude 564bb08
GPUI: the file preview plays a picked video
claude 4ba126e
GPUI: app-wide keys arrive with no field focused; / searches the Nexus
claude dc658d4
GPUI: tempfile for the built-in video encoder's tests
claude 13bd130
GPUI updater bundles in the release: signed macOS tarball, NSIS setup…
claude ac89ba7
publish: read-only token for the GPUI build
claude a165b01
GPUI runs on the Tauri client's data and identity: io.vectorapp folde…
claude da14cf3
Merge master into gpui
claude b72983b
GPUI Linux AppImage for the updater, built as the Tauri bundler build…
claude fdb0c02
Mini Apps: Nexus apps key their storage on the app id, as the desktop…
claude 631a6d3
GPUI Windows installer takes the Tauri client's place: its folder, Ve…
claude 72f3f75
GPUI package: Vulkan SDK on Linux for whisper's backend [package]
claude 7fad83e
GPUI Linux package plays video: the selective static FFmpeg, as macOS…
claude e123da5
GPUI boot heals an account older than the encryption_enabled row, as …
claude 45db5b4
GPUI on macOS draws text: gpui_platform's font-kit feature, without w…
claude 6ea5bbf
gpui: macOS window controls, resizing and Help [package]
claude 42f628e
gpui: name the raw window handle trait on macOS [package]
claude 5401a61
gpui: hand only font files to the text system [package]
claude be9fe20
gpui: styled pastes keep their styling as markdown
claude 8077aa8
gpui: read and write Vector Cache sealed, clip the rail [package]
claude 7165d26
gpui: the message toolbar stays while the pointer travels to it
claude 5f4543e
gpui: Nexus icon colours read through Vector Cache
claude fda73f7
gpui: quiet and muted community tones, animated GIFs everywhere
claude 1f3db9d
gpui: the command list keeps the wheel from the chat behind it
claude 61e942a
gpui: bios show mentions as pills, statuses draw their custom emoji
claude a06c695
gpui: opening a community or Messages leaves the App Store and Settings
claude 4134925
gpui: Navbar mode for the Main Menu toggle; chat scrollbar and Jump t…
claude 0601b58
gpui: rail drag preview matches the dragged tile or row [package]
claude 07307d7
gpui: ask for the microphone from the runtime, not a bare thread [pac…
claude 1f29b52
gpui: a press outside the Action Panel closes it [package]
claude eab179a
gpui: mention pills in the mini profile bio
claude d385597
gpui: avatars cover their circles, custom emoji jumbo and in statuses
claude 5ebb24b
gpui: animate WebP and APNG pictures, sniffed from their bytes
claude 9f65752
gpui: chat rows scroll to the header under the top fade
claude e40c498
gpui: edit history as a timeline of word diffs
claude ca2c981
gpui: Messages and unread DMs hold still over the scrolling Communities
claude 0b72b06
gpui: a copied file pastes as the file, not its path
claude f5083c7
gpui: composers draw pack emoji inline
claude 1c223cb
gpui: a reaction shows the moment it's picked
claude 875f5bb
gpui: the emoji pack rail eases after the section scrolled to
claude b82f2f1
GPUI: muted channels sit a tier below read ones
claude e3b37fc
GPUI: voice stage redraws on a width change instead of spilling left …
claude 12376f7
GPUI: edit history renders each revision's markdown, diff runs carrie…
claude 0b2e27f
GPUI: system event lines open the actor's mini profile; wallpapers de…
claude 5459f21
GPUI: wallpapers open through the Vector Cache seal
claude 78f8146
GPUI: a notification for a channel opens its Community around it
claude 9160ce1
GPUI: inline chips span the font's full height on macOS and Windows
claude 67f8864
GPUI: reply quotes draw the parent's custom emoji and name its attach…
claude eb5731c
GPUI: profile option labels never wrap
claude d70b1c1
GPUI: vendor gpui at the pinned rev, unchanged
claude 8c8a12d
GPUI: animated images wake the window when their next frame is due, n…
claude ea1ecef
GPUI: decoded pictures off screen for 90s are let go, with their atla…
claude 4b5cfa6
GPUI: animations share one 30 fps redraw grid and hold at most 24 MB …
claude b72b0bf
GPUI: the picture sweep runs on its own timer, since an idle window d…
claude 98f4c3d
GPUI: faces animate only while hovered or in a live view
claude 5c8216a
GPUI: decode disk pictures at their shown size, window the member roster
claude a89fc23
GPUI: faces decode as their centred square
claude ac19867
GPUI: fastrel profile for quick optimised builds
claude 1946f9f
GPUI: a sized image keeps its size whatever the picture's shape
claude 647c984
GPUI: animated pictures step on screen without redrawing the window
claude b446dea
GPUI: animation-only steps share a 20 fps grid
claude 4aacfd8
GPUI: devctl feature to drive and measure a running window
claude 51f401a
GPUI: devctl drives input and captures the window; endless animations…
claude 5ed6b87
GPUI: typing dots and the raid pulse as sprite strips; steps never pr…
claude fa21d1d
GPUI: the network notice dot breathes as a sprite strip
claude ab6c3eb
GPUI: the chat list, chat and member list draw as cached panes
claude 7f6e112
GPUI: the message list is a pane of its own
claude 68aca99
GPUI: hovering a message redraws only the message list
claude 5a5e82b
GPUI: a typing notice redraws only the open chat and the chat list
claude 5b3c24a
GPUI: held faces decode their first frame alone; animations are fitte…
claude c4b6fad
GPUI: Add Reactions is enforced
claude d5ef6fb
GPUI: a picture that fails to load asks again, at most twice a session
claude 395e0f0
GPUI: two pack emoji with a tilde in their shortcode stay emoji
claude 7da2e9a
GPUI: backend events, keystrokes and new messages redraw only what th…
claude 1e383fd
GPUI: transfer progress redraws only the message list; a repeat sync …
claude f582158
GPUI: the phone-width chat is a cached pane too, and its list's typin…
claude c1e4a06
GPUI: with Settings or the app hub open, a chat-list change still rea…
claude 6e6765e
GPUI: an edit or late message re-measures only its own rows and keeps…
claude 5f34e4d
GPUI: a row refresh keeps the reading place instead of throwing a scr…
claude 896b8b0
GPUI: the Get Started card says Create your first private chat. where…
claude 5d4983e
GPUI: the rail draws as its own cached pane, so hovering it or a busy…
claude d2259d7
GPUI: someone else's profile change redraws only the panes that show …
claude 1745c92
GPUI: emoji-sized animations step at most ten times a second, skippin…
claude 816f4be
GPUI: @ suggestions rank a newcomer by their join, so whoever just ar…
claude 77d5f3e
GPUI: a muted chat or channel never counts as unread, so a fully mute…
claude 58cb22d
GPUI: the window opens where it was left and closing it quits; a file…
claude 6942f69
GPUI: custom emoji show as pictures in the chat list preview
claude efbe44c
Captions on file messages survive a reload; GPUI previews load their …
claude 9de69ce
GPUI: preview emoji repaint only the chat list as they land, and show…
claude 1564881
GPUI: a zoomed window comes back zoomed, and unzooms to where it was
claude 815c7a9
vector-core: the at-rest sweep test expects file captions in the view
claude 3a2d305
gpui: a pointer that leaves the window clears hover through an ordina…
claude 2560e5b
gpui: every copy of an animated picture reads one shared clock
claude ce5b6ce
gpui: return emptied malloc regions on macOS after decode bursts
claude 73d32ed
gpui: animations hold their frame after 5 minutes without input
claude cdc564c
gpui: a pill jumps back to the first unread above the loaded page
claude c4dce33
gpui: owners drag channels and Categories to reorder them
claude e5db97f
gpui: staged Create Community progress; message links know deleted an…
claude c55febf
Resumable attachment downloads in vector-core, in the desktop client'…
claude 0382cb0
vector-core: the partial sweep reads the clock through web_time
claude 6e406a3
gpui: text fields pick a word or line on double and triple click, and…
claude 1cd4839
gpui: Tab and Shift-Tab move between the text fields a press could reach
claude ce4c294
gpui: select message text across messages and copy it
claude 9b3b16f
gpui: code blocks select like prose; video volume, fullscreen and pit…
claude e5d3370
gpui: pin the selection drag overlay to the timeline's box
claude abb292d
gpui: animations step on one tick at the fastest frame on screen; sca…
claude dcd46af
gpui: a finger landing starts a new archive pull; player windows load…
claude 4303458
gpui: inline HTML tags and right-to-left runs in messages
claude e901749
gpui: pad image atlas tiles with their own edge texels
claude 7e332c7
gpui: book an animation wake on the tick its frame is due, not one after
claude 5886268
gpui: composite APNG frames by the spec; play a GIF up to a damaged f…
claude f224d28
gpui: shrink big animations before dropping frames; keep on-screen im…
claude 70954f8
gpui: links open their place with its whole view
claude 04b8f67
gpui: spoiler sheen as an animated picture, so the shimmer swaps a ti…
claude 599cf85
gpui: remeasure a message row once its linked picture settles
claude da16f00
gpui: mention, reply and notification jumps open the target channel's…
claude b1e8923
gpui: size a link card's picture in pixels from the card's width
claude f645773
gpui: measure right-to-left text piece by piece
claude 1070724
gpui: decode animated WebP with libwebp; keep RTL spaces between the …
claude b1f0c26
gpui: size inline linked pictures in pixels so big animations don't o…
claude eca5192
gpui: emoji picker rail follows the section both ways
claude 62a2ecf
gpui: picker rail reaches its ends; active marker pops in and out
claude 60e2d54
gpui: Prevent URL Tracking strips trackers from sent and shown links
claude 7d750aa
gpui: wire Prevent URL Tracking into sends and links; Display Image T…
claude 803eaff
gpui: "beginning of your history" for channels joined after a rotation
claude 0288f2a
gpui: check media servers before a file's preview (checkUploadBlocked)
claude 317cc5e
gpui: media-server check for zipped folders; refresh stale profiles o…
claude e1f2749
gpui: fill community history gaps before paging older rows
claude 10ca012
gpui: code blocks guess their language, colour more languages, render…
claude b9d7ce0
gpui: warm a DM's inbox relays on open; revive subscriptions after be…
claude 1c755f2
gpui: Copy Link on the open-in-browser confirm
claude ba44040
gpui: list-row emoji hold their frame until the row is hovered
claude 4d3426e
gpui: remember unavailable avatars and banners; size image fetches fr…
claude 82b5f1e
gpui: premultiply resized frames in place
claude 83bd7e2
gpui: messages arriving while away or scrolled up stay unread until seen
claude d576282
gpui: spellcheck in the composer: system checker behind a spell::Back…
claude 475df4c
gpui: composer right-click offers spelling guesses, Ignore and Learn …
claude 9d9ce6c
gpui: autocorrect in the composer: a misspelled word ended by a space…
claude a27902c
GPUI: Windows spellcheck through ISpellChecker
claude 97ed06c
gpui: image decode moves frames instead of copying: no clone into the…
claude 52f8e76
gpui: sealed cache reads move their bytes out instead of copying
claude 64c40c1
gpui: JPEGs decode at the DCT scale their display needs; JPEG XL pict…
claude 71e14ee
gpui: photos leave as JPEG XL (lossless JPEG repack via libjxl); scen…
claude 099f9b6
gpui: spellcheck test skips where the system has no dictionary (headl…
claude 1a1f2c2
gpui: animations keep stepping while another pane redraws
claude 57cbad0
gpui: a pending redraw carries stepped animation tiles without forcin…
claude c82b791
gpui: libjxl links the DLL C runtime on MSVC like the rest of the build
claude ce4b296
gpui: animated tiles step inside replayed panes too; composer turns r…
claude 63fd93e
gpui: coloured-text atomic runs check their length caps by count, not…
claude 9894803
gpui: still PNGs leave as lossless JPEG XL
claude 9f8e0f5
gpui: lossless JPEG XL at effort 5: 3-7% smaller screenshots, a third…
claude 0e2678a
GPUI: hand-written SIMD scanners replace textcolor's regexes
claude d4ee9b1
GPUI: hand-written scanners replace texttime's regexes
claude 7242da6
GPUI: the last regexes become hand-written scanners
claude 3ad6197
vector-core: presence events read their event-type tag without buildi…
claude cb18bb3
vector-core: policy normalizers take exact fast paths: ASCII in one p…
claude 8f5a917
vector-core: stored rows open their sealed bodies in place and borrow…
claude 80102fc
gpui: an uncompressed picture leaves in its own format; only compress…
claude 50534ab
gpui: the slower scanners jump between the bytes a match can open with
claude 3e7c4d3
gpui: the rail's last row scrolls fully into view: padding, not margi…
claude 9e87e9d
gpui: time scanners skip ahead too: duration bails before its rewrite…
claude ee67026
gpui: every read advances the UI's own marker, so a reopened chat dra…
claude bfec2af
gpui: upload preview: a long name wraps inside the modal, and rename …
claude f304acb
gpui: pending pictures and videos show Tauri's upload overlay: progre…
claude e99eb08
gpui: spellcheck test also skips on a runner that guesses but checks …
claude e8b5107
gpui: the message toolbar lets the wheel through, so the chat scrolls…
claude 21ba63a
gpui: link preview players size to the card, so a narrow chat shrinks…
claude d11e1ca
gpui: the video volume slider leaves its knob room, clear of the full…
claude bac9869
gpui: a composer chip that wraps onto a new row starts there, not at …
claude 58fdabf
gpui: hovering any message of a streak animates its author's avatar
claude adfe5b6
gpui: code blocks scroll sideways with their own thumb; a vertical wh…
claude f500d6a
gpui: code blocks hold a sideways swipe, their thumb drags and their …
claude 2bdd8cc
gpui: clicking the reply bar jumps to the message, only its cancel ic…
claude bdb2733
gpui: a Community's member count opens from its last roster read inst…
claude a5d6796
gpui: pinned messages draw their custom emoji
claude 56d07a7
gpui: a multiline field taller than its max height scrolls instead of…
claude 3419ad3
gpui: a channel's row buttons take room only while hovered or open, s…
claude 4bf1427
gpui: a downloaded attachment's toolbar copies and saves or reveals i…
claude 135f6fb
gpui: composer emoji slots shape in a two-space font cut from Rubik, …
claude 0718e19
gpui: the message toolbar sits clear of the scrollbar strip
claude 0c006a0
gpui: channel row buttons fold by width, not display, so a hover flip…
claude 53df085
gpui (vendored): a div paints its children only when its prepaint did
claude a0ad3c5
gpui: persistent vector.log like Tauri's: vector-core's persisted lin…
claude bd32a72
gpui: channel row buttons widen on hover again (their container needs…
claude 607996d
gpui (vendored): the mid-frame display flip report names the element'…
claude 1cc52c4
gpui: the composer caret steps over a custom emoji whole, as it does …
claude 49058e9
gpui: call details stay open across a mute or volume change while rin…
claude cae4b1f
gpui: a 3D model view's last frame leaves the GPU atlas when the view…
claude 135888f
GPUI: free an animation's atlas tiles once it leaves the screen
claude c969620
GPUI: reuse video frame buffers instead of allocating one per frame
claude d3d3d29
GPUI devctl: dev:caches reports each decoded picture cache's size
claude 2012da0
gpui (vendored): gpui_macos at the pinned rev, unchanged but for its …
claude 6bfc7a0
gpui: file pickers offer only the types each accepts, as Tauri's do
claude 36bedb7
gpui: video playback decodes on 2 frame threads (4 past 1080p30), not…
claude 2d3d0bf
gpui: a 3D model starts only once it has stayed on screen 150 ms
claude a0f3fd0
gpui (vendored): gpui_windows at the pinned rev, unchanged but for it…
claude 752bdc2
gpui: the Windows open dialog offers only the picker's file types
claude 56616ef
gpui: a 3D view's multisampled colour and depth live in tile memory
claude d8f0968
gpui: edit history opens against the "(edited)" pressed, not the mess…
claude abc3e4a
gpui: web videos in Nostr posts play while they download
claude e5a3935
gpui: a Nostr or emoji pack card that failed keeps showing while it i…
claude 9e81463
gpui: Jump to Message leaves a message already in full view where it is
claude 7a4ebb0
gpui: a streamed video tracks the picture's and the sound's reads apart
claude 689115a
gpui: a streamed video buffers and waits on the picture's reader
claude bd78990
gpui: a seek bar's release lands even before the press has painted
claude a50eb16
gpui: decoded pictures past 256 MB let the longest undrawn go early
claude 63bc443
gpui: a streamed video seeks cleanly, keeps its shape and its spinner
claude 913e468
gpui: a streamed video resumes from a seek with a second in hand
claude e39aeba
gpui: a streamed video asks for up to three ranges at once
claude 436cb7d
gpui: a streamed video's readers keep the bytes they hop between
claude 79ceebe
gpui: a streamed video keeps a forward seek's bytes and holds without…
claude 6b67ee2
gpui: a seek on a stream never waits behind a slow request; a narrow …
claude 54f622b
gpui: a streamed video reads on one connection, as a browser does
claude 7081cc1
gpui: a streamed video follows each reader into every region it needs
claude b16933a
gpui: a streamed video's ranges each ride an HTTP/1.1 connection of t…
claude 8a95d44
gpui: a streamed video reads each region on a connection task of its own
claude 6a57082
gpui: a web video at another speed stretches its sound as the engine …
claude 7bbd8ea
gpui: a portrait web video keeps its speed button
claude a365815
gpui: emoji search sorts near-tie scores by bucket, never panicking
claude e3d1a55
gpui: a link's video floats when its chat closes, however it closes
claude f8bcf96
gpui: Settings or a profile over a chat floats its media too
claude a8a6d64
gpui: links with a multibyte character where a prefix is checked no l…
claude 7afe972
gpui: the build script reruns when DOCS_RS changes
claude 2ef178a
GPUI: evict decoded media by size and recency under a hard budget
claude 8abdcc6
GPUI: give back off-screen still pictures' atlas tiles, sweep fixture…
claude 362477f
GPUI: decoded media budget 96 MB, idle time 60 s
claude 47ace45
GPUI: GPUI's own image cache lets big pictures go sooner too
claude 1c702ab
Merge remote-tracking branch 'origin/master' into gpui
claude 5905d3d
GPUI: decoded media budget 64 MB
claude e8b9854
GPUI: a big animation keeps a tile or two, not one per frame
claude 8c9c0fa
GPUI: custom emoji at text size decode to 80 px
claude eedb534
GPUI: right-click a GIF in the picker to copy its link
claude ba90624
GPUI: four pictures read and decoded at once, the rest queued
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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,272 @@ | ||
| name: GPUI build | ||
|
|
||
| # The GPUI client on the platforms the cloud box can't build for. Its own workspace and lockfile, | ||
| # so nothing here touches the Tauri client's build. | ||
| on: | ||
| push: | ||
| branches: [gpui] | ||
| paths: | ||
| - 'crates/vector-gpui/**' | ||
| - 'crates/vector-core/**' | ||
| - 'crates/vector-calls/**' | ||
| - 'src-tauri/src/**' | ||
| - '.github/workflows/gpui.yaml' | ||
| pull_request: | ||
| paths: | ||
| - 'crates/vector-gpui/**' | ||
| - '.github/workflows/gpui.yaml' | ||
| workflow_dispatch: | ||
| # A release (publish.yaml) builds the updater bundles here, then signs and uploads them itself. | ||
| workflow_call: | ||
| inputs: | ||
| release_tag: | ||
| type: string | ||
| required: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| # A build takes most of an hour; a newer push waits for it rather than cancelling it. | ||
| concurrency: | ||
| group: gpui-${{ github.ref }} | ||
| cancel-in-progress: false | ||
|
|
||
| env: | ||
| RUST_TOOLCHAIN: 1.98.0 | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| build: | ||
| # The port's own pull request builds on its pushes already. | ||
| if: ${{ !inputs.release_tag && (github.event_name != 'pull_request' || github.head_ref != 'gpui') }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| # The arm64 pool rarely takes a job; the release builds use this one too. | ||
| - platform: macos-26-intel | ||
| features: '' | ||
| # No system FFmpeg on the runner: video attachments draw as files here for now. | ||
| - platform: windows-2022 | ||
| features: '--no-default-features --features tor,i2p' | ||
| runs-on: ${{ matrix.platform }} | ||
| defaults: | ||
| run: | ||
| working-directory: crates/vector-gpui | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
|
|
||
| - name: Prepare the runner (Windows) | ||
| if: startsWith(matrix.platform, 'windows') | ||
| shell: pwsh | ||
| run: | | ||
| Set-MpPreference -DisableRealtimeMonitoring $true | ||
| $drive = Split-Path -Qualifier $env:GITHUB_WORKSPACE | ||
| echo "CARGO_TARGET_DIR=$drive\t" >> $env:GITHUB_ENV | ||
|
|
||
| - name: FFmpeg (macOS) | ||
| if: startsWith(matrix.platform, 'macos') | ||
| run: | | ||
| brew install ffmpeg@7 pkg-config | ||
| echo "PKG_CONFIG_PATH=$(brew --prefix ffmpeg@7)/lib/pkgconfig" >> "$GITHUB_ENV" | ||
|
|
||
| # Whisper transcribes on Vulkan on x64 Windows, as the desktop client does. | ||
| - name: Cache Vulkan (Windows) | ||
| if: startsWith(matrix.platform, 'windows') | ||
| id: vulkan-cache | ||
| uses: actions/cache@v5 | ||
| with: | ||
| path: C:\vcpkg\installed | ||
| key: vulkan-x64-windows-headers-loader-spirv-tools-glslc | ||
|
|
||
| - name: Install Vulkan SDK (Windows) | ||
| if: startsWith(matrix.platform, 'windows') && steps.vulkan-cache.outputs.cache-hit != 'true' | ||
| shell: pwsh | ||
| working-directory: . | ||
| run: | | ||
| vcpkg install vulkan:x64-windows vulkan-headers:x64-windows vulkan-loader:x64-windows spirv-tools:x64-windows | ||
| Invoke-WebRequest -Uri "https://jskitty.com/glslc.exe" -OutFile "glslc.exe" | ||
| $vcpkgBin = "C:\vcpkg\installed\x64-windows\bin" | ||
| New-Item -ItemType Directory -Force -Path $vcpkgBin | ||
| Move-Item "glslc.exe" "$vcpkgBin\glslc.exe" -Force | ||
|
|
||
| - name: Vulkan environment (Windows) | ||
| if: startsWith(matrix.platform, 'windows') | ||
| shell: pwsh | ||
| run: | | ||
| $vcpkgBin = "C:\vcpkg\installed\x64-windows\bin" | ||
| echo "VULKAN_SDK=C:\vcpkg\installed\x64-windows" >> $env:GITHUB_ENV | ||
| echo "CMAKE_PREFIX_PATH=C:\vcpkg\installed\x64-windows" >> $env:GITHUB_ENV | ||
| echo "$vcpkgBin" >> $env:GITHUB_PATH | ||
|
|
||
| - uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| workspaces: crates/vector-gpui -> ${{ startsWith(matrix.platform, 'windows') && '../../../../t' || 'target' }} | ||
| key: ${{ matrix.platform }} | ||
|
|
||
| - name: Build | ||
| shell: bash | ||
| run: cargo build --locked ${{ matrix.features }} | ||
|
|
||
| - name: Tests | ||
| shell: bash | ||
| run: cargo test --locked ${{ matrix.features }} --bin vector-gpui | ||
|
|
||
| # Release builds to try the port on a Mac or a PC: a push whose message carries [package]. | ||
| # Thin LTO keeps a cold build near an hour; unsigned, so first launch needs the OS's override. | ||
| package: | ||
| if: inputs.release_tag || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[package]')) | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - platform: macos-26-intel | ||
| target: aarch64-apple-darwin | ||
| out: aarch64-apple-darwin/release | ||
| features: '--target aarch64-apple-darwin --no-default-features --features video-static,tor,i2p' | ||
| - platform: windows-2022 | ||
| target: x86_64-pc-windows-msvc | ||
| # The host's own target: a target directory level pushes whisper's Vulkan shader build past MAX_PATH. | ||
| out: release | ||
| features: '--no-default-features --features tor,i2p' | ||
| # The Tauri client's Linux release host: its glibc is the floor the AppImage runs on. | ||
| - platform: ubuntu-22.04 | ||
| target: x86_64-unknown-linux-gnu | ||
| out: release | ||
| features: '--no-default-features --features video-static,tor,i2p' | ||
| runs-on: ${{ matrix.platform }} | ||
| env: | ||
| CARGO_PROFILE_RELEASE_LTO: thin | ||
| CARGO_PROFILE_RELEASE_CODEGEN_UNITS: '16' | ||
| defaults: | ||
| run: | ||
| working-directory: crates/vector-gpui | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
| targets: ${{ matrix.target }} | ||
|
|
||
| - name: Prepare the runner (Windows) | ||
| if: startsWith(matrix.platform, 'windows') | ||
| shell: pwsh | ||
| run: | | ||
| Set-MpPreference -DisableRealtimeMonitoring $true | ||
| $drive = Split-Path -Qualifier $env:GITHUB_WORKSPACE | ||
| echo "CARGO_TARGET_DIR=$drive\t" >> $env:GITHUB_ENV | ||
|
|
||
| - name: Install dependencies (Linux) | ||
| if: startsWith(matrix.platform, 'ubuntu') | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev librsvg2-dev patchelf libasound2-dev \ | ||
| libxkbcommon-x11-dev libwayland-dev libx11-xcb-dev libxcb1-dev libfontconfig-dev libfreetype-dev \ | ||
| libvulkan-dev libssl-dev libzstd-dev clang cmake xdg-utils | ||
|
|
||
| # whisper builds its Vulkan backend on Linux, which needs glslc, as in the Tauri release. | ||
| - name: Vulkan SDK (Linux) | ||
| if: startsWith(matrix.platform, 'ubuntu') | ||
| run: | | ||
| wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc > /dev/null | ||
| sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list | ||
| sudo apt-get update | ||
| sudo apt-get install -y vulkan-sdk | ||
|
|
||
| - name: Cache FFmpeg (macOS, Linux) | ||
| if: startsWith(matrix.platform, 'macos') || startsWith(matrix.platform, 'ubuntu') | ||
| id: ffmpeg-cache | ||
| uses: actions/cache@v5 | ||
| with: | ||
| path: src-tauri/native-deps/ffmpeg/${{ matrix.target }} | ||
| key: ffmpeg-${{ matrix.target }}-${{ hashFiles('scripts/build-ffmpeg.sh') }} | ||
|
|
||
| - name: Build FFmpeg (macOS, Linux) | ||
| if: (startsWith(matrix.platform, 'macos') || startsWith(matrix.platform, 'ubuntu')) && steps.ffmpeg-cache.outputs.cache-hit != 'true' | ||
| working-directory: . | ||
| run: | | ||
| if [ "$RUNNER_OS" = macOS ]; then brew install nasm; else sudo apt-get install -y nasm; fi | ||
| scripts/build-ffmpeg.sh ${{ matrix.target }} | ||
|
|
||
| - name: Linux environment | ||
| if: startsWith(matrix.platform, 'ubuntu') | ||
| run: echo "FFMPEG_DIR=$GITHUB_WORKSPACE/src-tauri/native-deps/ffmpeg/${{ matrix.target }}" >> "$GITHUB_ENV" | ||
|
|
||
| # An Intel host building for arm64: ggml's native CPU probe would read the host. | ||
| - name: macOS environment | ||
| if: startsWith(matrix.platform, 'macos') | ||
| run: | | ||
| echo "FFMPEG_DIR=$GITHUB_WORKSPACE/src-tauri/native-deps/ffmpeg/${{ matrix.target }}" >> "$GITHUB_ENV" | ||
| echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> "$GITHUB_ENV" | ||
| echo "GGML_NATIVE=OFF" >> "$GITHUB_ENV" | ||
| echo "MACOSX_DEPLOYMENT_TARGET=11.0" >> "$GITHUB_ENV" | ||
|
|
||
| - name: Cache Vulkan (Windows) | ||
| if: startsWith(matrix.platform, 'windows') | ||
| id: vulkan-cache | ||
| uses: actions/cache@v5 | ||
| with: | ||
| path: C:\vcpkg\installed | ||
| key: vulkan-x64-windows-headers-loader-spirv-tools-glslc | ||
|
|
||
| - name: Install Vulkan SDK (Windows) | ||
| if: startsWith(matrix.platform, 'windows') && steps.vulkan-cache.outputs.cache-hit != 'true' | ||
| shell: pwsh | ||
| working-directory: . | ||
| run: | | ||
| vcpkg install vulkan:x64-windows vulkan-headers:x64-windows vulkan-loader:x64-windows spirv-tools:x64-windows | ||
| Invoke-WebRequest -Uri "https://jskitty.com/glslc.exe" -OutFile "glslc.exe" | ||
| $vcpkgBin = "C:\vcpkg\installed\x64-windows\bin" | ||
| New-Item -ItemType Directory -Force -Path $vcpkgBin | ||
| Move-Item "glslc.exe" "$vcpkgBin\glslc.exe" -Force | ||
|
|
||
| - name: Vulkan environment (Windows) | ||
| if: startsWith(matrix.platform, 'windows') | ||
| shell: pwsh | ||
| run: | | ||
| $vcpkgBin = "C:\vcpkg\installed\x64-windows\bin" | ||
| echo "VULKAN_SDK=C:\vcpkg\installed\x64-windows" >> $env:GITHUB_ENV | ||
| echo "CMAKE_PREFIX_PATH=C:\vcpkg\installed\x64-windows" >> $env:GITHUB_ENV | ||
| echo "$vcpkgBin" >> $env:GITHUB_PATH | ||
|
|
||
| - uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| workspaces: crates/vector-gpui -> ${{ startsWith(matrix.platform, 'windows') && '../../../../t' || 'target' }} | ||
| key: package-${{ matrix.target }} | ||
|
|
||
| - name: Build | ||
| shell: bash | ||
| run: cargo build --release --locked ${{ matrix.features }} | ||
|
|
||
| - name: Bundle (macOS) | ||
| if: startsWith(matrix.platform, 'macos') | ||
| run: scripts/bundle-macos.sh target/${{ matrix.out }}/vector-gpui "$RUNNER_TEMP/pkg" | ||
|
|
||
| - name: Bundle (Windows) | ||
| if: startsWith(matrix.platform, 'windows') | ||
| shell: pwsh | ||
| run: | | ||
| New-Item -ItemType Directory -Force -Path "$env:RUNNER_TEMP\pkg" | Out-Null | ||
| Copy-Item "$env:CARGO_TARGET_DIR\${{ matrix.out }}\vector-gpui.exe" "$env:RUNNER_TEMP\pkg\Vector GPUI.exe" | ||
| $version = (Select-String -Path Cargo.toml -Pattern '^version = "(.*)"' | Select-Object -First 1).Matches.Groups[1].Value | ||
| & "${env:ProgramFiles(x86)}\NSIS\makensis.exe" /V2 ` | ||
| "/DSOURCE=$env:RUNNER_TEMP\pkg\Vector GPUI.exe" "/DICON=$env:GITHUB_WORKSPACE\src-tauri\icons\icon.ico" ` | ||
| "/DVERSION=$version" "/DOUTFILE=$env:RUNNER_TEMP\pkg\Vector-GPUI_x64-setup.exe" scripts\installer.nsi | ||
| if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | ||
|
|
||
| - name: Bundle (Linux) | ||
| if: startsWith(matrix.platform, 'ubuntu') | ||
| env: | ||
| TOOLS: ${{ runner.temp }}/appimage-tools | ||
| run: scripts/bundle-appimage.sh target/${{ matrix.out }} "$RUNNER_TEMP/pkg" | ||
|
|
||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: vector-gpui-${{ matrix.target }} | ||
| path: ${{ runner.temp }}/pkg | ||
| retention-days: 14 | ||
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
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
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.