Skip to content

ci(chore[tmux]): adopt libtmux/setup-tmux - #126

Merged
tony merged 6 commits into
masterfrom
ci/adopt-setup-tmux
Dec 5, 2026
Merged

tony merged 6 commits into
masterfrom
ci/adopt-setup-tmux

Conversation

@tony

@tony tony commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Closes #125

Summary

  • Build the four Linux tmux binaries with libtmux/setup-tmux v0.1.0. Manifest entries use their pinned commits. A custom tag or branch uses the action’s explicit Git-ref input. The old-daemon build keeps the supported client first on PATH.
  • Build the macOS matrix commit with the same action. Check its public version, source commit and binary path against the requested build. Check the executable architecture and record its digest, install mode and cache key.
  • Install the SDK pinned in global.json on each macOS runner so Product can compile the recording tmux fixture.
  • Remove the now-unused scripts/build-tmux-macos/ directory and its ci.yml test step, and update scripts/macos-trial/README.md.
  • Update scripts/check-workflows (and its tests and README) to require a full commit SHA for libtmux/setup-tmux in workflow files.
  • Pin the documented libtmux/mise-tmux plugin installation to v0.1.0 and update CI tmux action references in .github/CONTRIBUTING.md.

Verification

  • actionlint .github/workflows/ci.yml .github/workflows/macos-trial.yml passed.
  • CheckWorkflows.ps1, CheckWorkflows.Tests.ps1, PlanMatrix.Tests.ps1, MatrixManifest.Tests.ps1, MacosTrial.Tests.ps1, and ReadmeLinks.Tests.ps1 passed.
  • eng/Lint.ps1 (PSScriptAnalyzer 1.25.0) passed with 0 diagnostics.
  • The pinned action planned the custom 3.6b Git tag at commit 0623d1e968423ad0c192e0d8debf1258671063d5. The provenance command refused a mismatched commit and accepted the matching binary.
  • check_example_width.py passed (123 files checked; no example over 80 columns).

The four Linux edge lanes passed. The full run passed all eight supported tmux releases and tmux master on PowerShell 7.6.10, plus both rejection and both mixed client/daemon checks on 7.4.20. The custom tmux 3.6b lane built Git commit 0623d1e. All eight advisory macOS cells recorded the expected tmux source and started Product. Product and Documentation each passed in zero of eight cells. The artifacts name the failing scripts. The macOS fixture and example fixes are in #9. Linux edges · Full matrix · Custom Git ref · macOS results

Test plan

  • Run actionlint on .github/workflows/ci.yml and .github/workflows/macos-trial.yml
  • Run workflow, manifest, plan, macOS trial, and README link tests
  • Run eng/Lint.ps1 and check_example_width.py
  • Run the installed Product and Documentation suites locally. Hosted Linux and advisory macOS results are recorded separately. Linux checks · macOS trial

why:
The shared libtmux/.github/actions/build-tmux action runs apt-get on every
cache hit, compiles every release from source on misses, and only targets
Linux (requiring a separate PowerShell macOS compiler script in
macos-trial.yml). libtmux/setup-tmux v0.1.0 supports both Linux and macOS
with OS-ABI-keyed caching and bundled static libevent.

what:
- Replace the four build-tmux steps in .github/workflows/ci.yml with
  libtmux/setup-tmux@96c8f0d (v0.1.0),
  mapping ref to version and setting add-to-path: 'false' on the
  reject-old-daemon daemon build.
- Replace scripts/build-tmux-macos/BuildTmuxMacos.ps1 in
  .github/workflows/macos-trial.yml with libtmux/setup-tmux, passing
  setup-tmux's build.json metadata to MacosTrial.ps1 provenance.
- Remove the now-unused scripts/build-tmux-macos/ directory and its test
  step in ci.yml, and update scripts/macos-trial/README.md.
- Update scripts/check-workflows to enforce full-commit pinning on
  libtmux/setup-tmux and update its tests and docs.
- Document libtmux/mise-tmux (v0.1.0) for local matrix installs and update
  the CI tmux references in .github/CONTRIBUTING.md.
@tony
tony deployed to docs-preview December 2, 2026 09:26 — with GitHub Actions Active
tony added 5 commits December 5, 2026 06:17
why: The trial copied a private cache receipt and recorded the requested
tmux version and commit even when the install reported another build.

what: Check the public setup-tmux outputs against the trial pins and
hash the binary on PATH. Verify its native architecture and record the
install mode and cache key.
why: The install command followed the default branch even though the
guide names version 0.1.0.

what: Install the plugin at its documented tag.
why: Product builds its recording tmux before starting a worker. The
hosted image supplies SDK 8.0.428 and the project pins 8.0.425.

what: Have each trial runner install the SDK named in global.json.
why: An out-of-table tag such as 3.6b selected a release archive when
passed as a bare setup-tmux version. Custom runs promise a Git build.

what: Mark unpinned matrix names as Git refs at the action input. Keep
passing table entries by their existing commit pins.
why: The support script repeated the same checks in the command help
and in a comment beside the implementation.

what: Keep the command help as the description of the checks.
@tony
tony deployed to docs-preview December 5, 2026 13:03 — with GitHub Actions Active
@tony
tony merged commit bad3574 into master Dec 5, 2026
53 checks passed

This branch was successfully deployed

1 active deployment
docs-preview — adae711f Deployed Dec 5, 2026 by tony via publish (pr-126, pr, false, true, powershell) / publish #261
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adopt libtmux/setup-tmux in CI and libtmux/mise-tmux locally

1 participant