Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(desktop): run the WSL backend from the Linux CLI archive #11511

Mergedjuliusmarmingemerged 1 commit intosea/archive-only fromrefs/pull/11511/headmerged by juliusmarminge View on GitHub

Showing 8 changed files with 103 additions and 40 deletions (loading 7).

x
0 of 8 viewed, 8 left
103 additions and 40 deletions.github/workflows/release.ymlModified
View file
@@ -354,21 +354,28 @@
# job — the Windows artifact then ships a ready WSL backend binary with no
# cross-compiling and no first-launch compiler/node-gyp/network on the user's
# machine. node-pty is N-API, so one binary works across all WSL Node versions.
- build_wsl_node_pty:
- name: Build WSL node-pty (linux-x64)
+ # The Linux CLI archive is built ahead of the desktop matrix because two
+ # consumers need it: the Linux desktop entry attaches it to the release, and
+ # the Windows desktop entry embeds it as the WSL runtime. Building it once
+ # here means the WSL backend runs the exact bytes a Linux user downloads.
+ build_linux_cli:
+ name: Build CLI archive (linux-x64)
# Same gating as relay_public_config: only the release commit is needed, so
# this runs alongside preflight. See the condition comment there.
- needs: [resolve_commit]
- if: |
- needs.resolve_commit.result == 'success' &&
- (github.event_name != 'schedule' || needs.resolve_commit.outputs.has_changes == 'true')
- runs-on: blacksmith-8vcpu-ubuntu-2404
- timeout-minutes: 15
+ needs: [resolve_commit, preflight, relay_public_config]
+ if: ${{ !cancelled() && needs.preflight.result == 'success' && needs.relay_public_config.result == 'success' }}
+ runs-on: blacksmith-32vcpu-ubuntu-2404
+ timeout-minutes: 20
+ env:
+ T3CODE_CLERK_PUBLISHABLE_KEY: ${{ needs.relay_public_config.outputs.clerk_publishable_key }}
+ T3CODE_CLERK_JWT_TEMPLATE: ${{ needs.relay_public_config.outputs.clerk_jwt_template }}
+ T3CODE_CLERK_CLI_OAUTH_CLIENT_ID: ${{ needs.relay_public_config.outputs.clerk_cli_oauth_client_id }}
+ T3CODE_RELAY_URL: ${{ needs.relay_public_config.outputs.relay_url }}
steps: