Skip to content

feat(release): publish the binaries as gzip tarballs - #1688

Merged
edenreich merged 1 commit into
mainfrom
feat/release-tarballs
Nov 3, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/release-tarballs

Conversation

@edenreich

@edenreich edenreich commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

GitHub serves release assets uncompressed, so every install moved the whole executable, about 105MB per platform (80MB after #1686). Each platform now ships as infer-<os>-<arch>.tar.gz holding one file, infer (infer.exe on Windows). checksums.txt and its Cosign bundle cover the archives.

  • release.yml archives the artifacts in the release job with GNU tar (--transform renames the entry, --owner=0 --group=0), checksums the archives and verifies the new asset list.
  • release.config.mjs uploads the archives.
  • install.sh, install.ps1 and npm/bin/install.js download the archive and extract it with the system tar, which macOS, Linux and Windows 10+ ship.
  • docs/installation.md and docs/binary-verification.md describe the archives.
  • The container image builds from the workflow's raw artifacts via --build-context binaries=dist/, unchanged.

The raw infer-<os>-<arch> release assets are gone.

before after
darwin/arm64 asset 79.4MB raw 25.9MB .tar.gz

Affected repos

Consumers of the raw asset names outside this repository, found with gh search code and a grep of shallow clones:

  • inference-gateway/infer-action: fix: install the CLI from its release tarball infer-action#433 downloads the archive and falls back to the raw asset for pinned older versions.
  • inference-gateway/desktop: backend/src/env.rs maps the platform to the raw asset name and backend/src/cli_install.rs downloads it from releases/latest/download, verifies it against checksums.txt and renames it into place. fix: install the CLI from its release tarball desktop#420 downloads the archive, verifies it and extracts it. Desktop builds already installed keep calling the raw URL, so that desktop release should go out before this merges.
  • inference-gateway/opentask pins the Nix flake and inference-gateway/docs only points at install.sh. Neither changes.

Verification

  • install.sh and the npm postinstall run against a local server holding a .tar.gz built from this branch's binary and its checksums.txt: both install a working infer, and a tampered checksum fails the npm install.
  • The archive step ran under GNU tar 1.35 from nixpkgs: the Linux archive holds infer, the Windows one infer.exe, both owned by root.
  • task precommit:run passes.

Closes #1687

GitHub serves release assets uncompressed, so every install moved the
whole executable, about 105MB per platform. Each platform now ships as
infer-<os>-<arch>.tar.gz holding one file, infer or infer.exe, which
is about a third of the size. checksums.txt and its Cosign bundle cover
the archives.

install.sh, install.ps1 and the npm postinstall download the archive and
extract it with the system tar. The container image still builds from
the workflow's raw artifacts and is unchanged.

BREAKING CHANGE: the raw infer-<os>-<arch> release assets are gone.
Download infer-<os>-<arch>.tar.gz and extract it instead.

Closes #1687
@edenreich
edenreich requested a review from a team as a code owner November 3, 2026 00:50
@github-project-automation github-project-automation Bot moved this to Todo in 2026 Nov 3, 2026
@edenreich edenreich changed the title feat(release)!: publish the binaries as gzip tarballs feat(release): publish the binaries as gzip tarballs Nov 3, 2026
@edenreich
edenreich merged commit 10ab7d6 into main Nov 3, 2026
1 check passed
@edenreich
edenreich deleted the feat/release-tarballs branch November 3, 2026 01:06
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.242.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[TASK] Publish release binaries as gzip tarballs for faster downloads

1 participant