ci(release): build CLI archives for five targets, each on its own architecture (#11605)

Co-authored-by: Claude Fable 5 <[email protected]>
This commit is contained in:
Julius MarmingeandClaude Fable 5 authored and GitHub committed 2026-09-13 21:24:23 -07:00
1 parent 07549200dc
commit 2c54f2ff17
4 files changed
+225 -28

No files matched your search

+3 -4
View File
@@ -23,11 +23,10 @@ describe("cliRelease", () => {
expect(cliArchivePlatformKey("darwin", "arm64")).toBe("darwin-arm64");
expect(cliArchivePlatformKey("linux", "x64")).toBe("linux-x64");
expect(cliArchivePlatformKey("win32", "x64")).toBe("win32-x64");
// Built but not published (macOS x64 segfaults under Rosetta when
// cross-injected; the arm64 Linux and Windows runners do not exist yet).
// Node single-executables are unsupported on x64 macOS.
expect(cliArchivePlatformKey("darwin", "x64")).toBeUndefined();
expect(cliArchivePlatformKey("linux", "arm64")).toBeUndefined();
expect(cliArchivePlatformKey("win32", "arm64")).toBeUndefined();
expect(cliArchivePlatformKey("linux", "arm64")).toBe("linux-arm64");
expect(cliArchivePlatformKey("win32", "arm64")).toBe("win32-arm64");
expect(cliArchivePlatformKey("freebsd", "x64")).toBeUndefined();
expect(cliArchivePlatformKey("linux", "ia32")).toBeUndefined();
});
+14 -5
View File
@@ -11,12 +11,21 @@ export const CLI_RELEASE_CHECKSUMS_FILE = "SHA256SUMS";
export const CLI_RELEASE_BASE_URL_ENV = "T3CODE_RELEASE_BASE_URL";
/**
* The archives a release actually attaches. Kept in step with the
* `cli_archive` matrix flags in .github/workflows/release.yml: a key here
* without a build there produces download URLs that 404, and a build there
* without a key here is unreachable from every installer.
* The archives a release attaches. Kept in step with the build_linux_cli
* matrix, build_windows_arm64_cli, and the `cli_archive` rows in
* .github/workflows/release.yml: a key here without a build there produces
* download URLs that 404, and a build there without a key here is
* unreachable from every installer.
*/
const CLI_ARCHIVE_PLATFORM_KEYS = ["darwin-arm64", "linux-x64", "win32-x64"] as const;
// No darwin-x64: Node single-executables are unsupported on x64 macOS (the
// SEA docs list macOS as arm64 only) and the binary segfaults on start.
const CLI_ARCHIVE_PLATFORM_KEYS = [
"darwin-arm64",
"linux-arm64",
"linux-x64",
"win32-arm64",
"win32-x64",
] as const;
export type CliArchivePlatformKey = (typeof CLI_ARCHIVE_PLATFORM_KEYS)[number];
export function cliArchivePlatformKey(