From 084c10c3d87b4b2e5005bf45632cb83fee2ac2e1 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 7 Nov 2026 11:10:05 -0600 Subject: [PATCH 1/2] ci(fix): Rebuild incompatible tmux caches why: The tests workflow caches each tmux build under a key of only the tmux version, so a tmux built on an older runner image is restored on a newer one. libtmux-mcp's trunk tests are red from exactly this: the restored tmux fails at `tmux -V` with `libtinfo.so.6: version NCURSES6_TINFO_6.4.current not found` (https://github.com/tmux-python/libtmux-mcp/actions/runs/42372774052). tmuxp has the same key and breaks the next time its cache misses on a new image. Ports tmux-python/libtmux#835. what: - Key native builds by runner, toolchain, source, and recipe - Validate cache hits and rebuild invalid installations from fresh sources - Pin release archives in .github/tmux-releases.toml, including tmux 3.7 from its tmux-3.7.tar.gz release asset, and compile with bounded parallelism - Save validated builds before tests and exercise cache recovery - Lint and type-check .github/scripts for Python 3.11 - Document the CI build in CONTRIBUTING --- .github/CONTRIBUTING.md | 31 ++++ .github/scripts/test_tmux_build.py | 180 +++++++++++++++++++ .github/scripts/tmux_build.py | 280 +++++++++++++++++++++++++++++ .github/tmux-releases.toml | 10 ++ .github/workflows/tests.yml | 65 ++++--- pyproject.toml | 3 + 6 files changed, 542 insertions(+), 27 deletions(-) create mode 100644 .github/scripts/test_tmux_build.py create mode 100644 .github/scripts/tmux_build.py create mode 100644 .github/tmux-releases.toml diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 08fe30907c..f9672ca790 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -259,6 +259,37 @@ $ uv run py.test tests/workspace/test_builder.py Terminal 1 flickers as sessions build before your eyes — the building tmuxp normally hides from users. +### Native tmux in CI + +The test workflow builds the versions in its existing matrix. Stable +versions use the official release archives and SHA256 pins in +`.github/tmux-releases.toml`; `master` resolves once to a commit and +fetches that exact commit. The build follows tmux's +[release and source-checkout instructions](https://github.com/tmux/tmux/blob/3.7/README). +Only the installed prefix is cached. Each build uses a fresh source tree +and up to four available processors. + +Cache keys include the actual runner image and image version, architecture, +compiler and dependency versions, source identity, and build script. +Dependencies are installed before validation on hits and misses. Every +restored executable must match its recorded hash and version, start a +private daemon, and report the same connected version. A failed check +discards that job's prefix and rebuilds it. + +The workflow saves a validated installation before library tests run. +GitHub caches are immutable: repairing an invalid exact hit fixes the +current job, but cannot overwrite that entry. A build-script change +invalidates its key for later jobs. Never add a broad restore-key fallback +for native binaries. + +The CI scripts require Python 3.11+ for the standard-library TOML reader; +the library keeps its Python 3.10 floor. Run the cache regressions against +an installed tmux: + +```console +$ uv run pytest .github/scripts/test_tmux_build.py --reruns=0 +``` + ## Documentation Rebuild the docs whenever a source file changes: diff --git a/.github/scripts/test_tmux_build.py b/.github/scripts/test_tmux_build.py new file mode 100644 index 0000000000..1ddb0b75a1 --- /dev/null +++ b/.github/scripts/test_tmux_build.py @@ -0,0 +1,180 @@ +"""Regressions for reusing native executables on CI runners.""" + +from __future__ import annotations + +import hashlib +import json +import pathlib +import shutil +import subprocess + +import pytest +import tmux_build + + +@pytest.fixture +def native() -> tuple[pathlib.Path, dict[str, str]]: + """Use the runner's real tmux for validation and private daemon checks.""" + executable = shutil.which("tmux") + assert executable is not None + binary = pathlib.Path(executable).resolve() + version = ( + subprocess.run([str(binary), "-V"], check=True, capture_output=True, text=True) + .stdout.strip() + .removeprefix("tmux ") + ) + return binary, {"version": version if version in tmux_build._RELEASES else "master"} + + +def _install(prefix: pathlib.Path, native: pathlib.Path) -> pathlib.Path: + binary = prefix / "bin" / "tmux" + binary.parent.mkdir(parents=True) + shutil.copy2(native, binary) + return binary + + +def _record(prefix: pathlib.Path, identity: dict[str, str]) -> None: + digest = hashlib.sha256((prefix / "bin" / "tmux").read_bytes()).hexdigest() + (prefix / "build.json").write_text( + json.dumps({"identity": identity, "sha256": digest}) + ) + + +@pytest.mark.parametrize("fault", ["loader", "version", "identity", "hash", "metadata"]) +def test_broken_cached_executable_is_rebuilt( + tmp_path: pathlib.Path, + monkeypatch: pytest.MonkeyPatch, + native: tuple[pathlib.Path, dict[str, str]], + fault: str, +) -> None: + """Replace slow compilation only; run validation against a real executable.""" + installed, identity = native + prefix = tmp_path / "tmux" + binary = _install(prefix, installed) + if fault == "loader": + binary.write_text("#!/bin/sh\nexit 127\n") + elif fault == "version": + binary.write_text("#!/bin/sh\necho 'unrelated executable'\n") + _record(prefix, identity if fault != "identity" else {"version": "other"}) + if fault == "hash": + with binary.open("ab") as output: + output.write(b"changed") + elif fault == "metadata": + (prefix / "build.json").write_text("{") + stale = prefix / "old-object.o" + stale.touch() + sibling = tmp_path / "borrowed" + sibling.write_text("keep") + + def compile_fresh(destination: pathlib.Path, _: dict[str, str]) -> None: + assert not destination.exists() + _install(destination, installed) + + monkeypatch.setattr(tmux_build, "_build", compile_fresh) + assert tmux_build._prepare(prefix, identity) + assert not stale.exists() + assert sibling.read_text() == "keep" + assert binary.read_bytes() == installed.read_bytes() + assert tmux_build._valid(prefix, identity) + + +def test_valid_cache_skips_build_and_leaves_other_servers_alive( + tmp_path: pathlib.Path, + monkeypatch: pytest.MonkeyPatch, + native: tuple[pathlib.Path, dict[str, str]], +) -> None: + """Avoid compilation on a valid hit; exercise real startup and cleanup.""" + installed, identity = native + prefix = tmp_path / "tmux" + binary = _install(prefix, installed) + _record(prefix, identity) + inode = binary.stat().st_ino + + def unexpected_build(_: pathlib.Path, __: dict[str, str]) -> None: + pytest.fail("A validated cache must not rebuild") + + monkeypatch.setattr(tmux_build, "_build", unexpected_build) + monkeypatch.delenv("TMUX", raising=False) + monkeypatch.delenv("TMUX_PANE", raising=False) + monkeypatch.setenv("SHELL", "/bin/sh") + monkeypatch.setenv("TERM", "xterm-256color") + command = [str(installed), "-f", "/dev/null", "-S", str(tmp_path / "borrowed.sock")] + subprocess.run( + [*command, "new-session", "-d", "-s", "keep", "exec cat"], check=True + ) + try: + assert not tmux_build._prepare(prefix, identity) + assert binary.stat().st_ino == inode + subprocess.run([*command, "has-session", "-t", "keep"], check=True) + finally: + subprocess.run([*command, "kill-server"], check=True) + + +def test_symlink_cache_does_not_delete_its_target( + tmp_path: pathlib.Path, + monkeypatch: pytest.MonkeyPatch, + native: tuple[pathlib.Path, dict[str, str]], +) -> None: + """Replace compilation only; discard the cache link without following it.""" + installed, identity = native + borrowed = tmp_path / "borrowed" + original = _install(borrowed, installed) + _record(borrowed, identity) + prefix = tmp_path / "tmux" + prefix.symlink_to(borrowed, target_is_directory=True) + + def compile_fresh(destination: pathlib.Path, _: dict[str, str]) -> None: + _install(destination, installed) + + monkeypatch.setattr(tmux_build, "_build", compile_fresh) + assert tmux_build._prepare(prefix, identity) + assert not prefix.is_symlink() + assert original.read_bytes() == installed.read_bytes() + + +def test_failed_build_does_not_write_a_valid_cache_record( + tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch +) -> None: + """Inject a compiler failure; a partial installation must remain invalid.""" + prefix = tmp_path / "tmux" + + def fail_build(destination: pathlib.Path, _: dict[str, str]) -> None: + destination.mkdir() + msg = "compiler failed" + raise RuntimeError(msg) + + monkeypatch.setattr(tmux_build, "_build", fail_build) + with pytest.raises(RuntimeError, match="compiler failed"): + tmux_build._prepare(prefix, {"version": "3.6"}) + assert not (prefix / "build.json").exists() + + +@pytest.mark.parametrize( + "field", ["image", "arch", "source", "recipe", "compiler", "packages"] +) +def test_changed_build_environment_cannot_restore_the_same_key(field: str) -> None: + """A source, recipe, toolchain, or runner change invalidates the binary.""" + identity = { + "version": "3.6", + "image": "ubuntu24-20260920.1", + "arch": "x86_64", + "source": "source-a", + "recipe": "recipe-a", + "compiler": "compiler-a", + "packages": "packages-a", + } + changed = dict(identity) + changed[field] += "-changed" + assert tmux_build._cache_key(identity) != tmux_build._cache_key(changed) + + +@pytest.mark.parametrize("field", ["ImageOS", "ImageVersion"]) +def test_missing_runner_image_is_rejected_before_source_resolution( + monkeypatch: pytest.MonkeyPatch, field: str +) -> None: + """An unbound runner variable must not produce another version-only key.""" + monkeypatch.setenv("ImageOS", "ubuntu26") + monkeypatch.setenv("ImageVersion", "20261105.1") + monkeypatch.setenv(field, "") + with pytest.raises(ValueError, match="runner image"): + tmux_build._identity("master") diff --git a/.github/scripts/tmux_build.py b/.github/scripts/tmux_build.py new file mode 100644 index 0000000000..cd52dec13c --- /dev/null +++ b/.github/scripts/tmux_build.py @@ -0,0 +1,280 @@ +"""Build and validate the private tmux installation used by GitHub Actions.""" + +from __future__ import annotations + +import argparse +import hashlib +import json +import os +import pathlib +import platform +import re +import shutil +import subprocess +import tempfile +import tomllib + +_REPOSITORY = "https://github.com/tmux/tmux.git" +with (pathlib.Path(__file__).parents[1] / "tmux-releases.toml").open("rb") as _pins: + _RELEASES: dict[str, str] = tomllib.load(_pins)["releases"] + +_BUILD_ENV = { + "CC": "cc", + "CFLAGS": "-O2", + "CPPFLAGS": "", + "LDFLAGS": "", + "MAKEFLAGS": "", +} + + +class _CleanupError(RuntimeError): + """The private smoke-test daemon could not be cleaned up.""" + + +def _sha256(path: pathlib.Path) -> str: + return hashlib.sha256(path.read_bytes()).hexdigest() + + +def _output(args: list[str]) -> str: + return subprocess.run( + args, check=True, capture_output=True, text=True + ).stdout.strip() + + +def _identity(version: str) -> dict[str, str]: + parts = [os.environ.get(name, "") for name in ("ImageOS", "ImageVersion")] + if not all(re.fullmatch(r"[A-Za-z0-9_.-]+", part) for part in parts): + msg = "Missing or invalid runner image identity" + raise ValueError(msg) + image = "-".join(parts) + source = _RELEASES.get(version) + if source is None: + source = _output( + ["git", "ls-remote", _REPOSITORY, "refs/heads/master"] + ).split()[0] + if not re.fullmatch(r"[0-9a-f]{40}", source): + msg = "Could not resolve tmux master to a commit" + raise ValueError(msg) + return { + "version": version, + "source": source, + "image": image, + "arch": platform.machine(), + "recipe": _sha256(pathlib.Path(__file__)), + "compiler": _output(["cc", "--version"]), + "packages": _output( + [ + "dpkg-query", + "-W", + "-f=${Package}=${Version}\n", + "gcc", + "libc6", + "libevent-dev", + "libncurses-dev", + "libutempter-dev", + "bison", + "autoconf", + "automake", + "pkg-config", + ] + ), + } + + +def _cache_key(identity: dict[str, str]) -> str: + digest = hashlib.sha256(json.dumps(identity, sort_keys=True).encode()).hexdigest() + return f"tmux-v2-{identity['version']}-{digest}" + + +def _probe(binary: pathlib.Path, version: str) -> None: + reported = subprocess.run( + [str(binary), "-V"], check=True, capture_output=True, text=True, timeout=1 + ).stdout.strip() + if not reported.startswith("tmux ") or ( + version != "master" and reported != f"tmux {version}" + ): + msg = f"Expected tmux {version}, got {reported!r}" + raise ValueError(msg) + env = {k: v for k, v in os.environ.items() if k not in {"TMUX", "TMUX_PANE"}} + env.update({"SHELL": "/bin/sh", "TERM": "xterm-256color", "LC_ALL": "C.UTF-8"}) + with tempfile.TemporaryDirectory(prefix="lt-ci-") as temporary: + socket = pathlib.Path(temporary) / "socket" + command = [str(binary), "-f", "/dev/null", "-S", str(socket)] + try: + subprocess.run( + [*command, "new-session", "-d", "-s", "probe", "exec cat"], + check=True, + capture_output=True, + env=env, + timeout=1, + ) + connected = subprocess.run( + [*command, "display-message", "-p", "#{version}"], + check=True, + capture_output=True, + text=True, + env=env, + timeout=1, + ).stdout.strip() + if reported != f"tmux {connected}": + msg = f"Connected daemon version differs: {connected!r}" + raise ValueError(msg) + finally: + if socket.exists(): + try: + subprocess.run( + [*command, "kill-server"], + check=True, + capture_output=True, + env=env, + timeout=1, + ) + except (OSError, subprocess.SubprocessError) as error: + msg = "Failed to clean up the private tmux smoke test" + raise _CleanupError(msg) from error + + +def _valid(prefix: pathlib.Path, identity: dict[str, str]) -> bool: + binary = prefix / "bin" / "tmux" + try: + if prefix.is_symlink() or binary.parent.is_symlink() or binary.is_symlink(): + return False + record = json.loads((prefix / "build.json").read_text()) + if record != {"identity": identity, "sha256": _sha256(binary)}: + return False + _probe(binary, identity["version"]) + except (OSError, ValueError, subprocess.SubprocessError) as error: + print(f"tmux cache rejected: {error}", flush=True) + return False + return True + + +def _build(prefix: pathlib.Path, identity: dict[str, str]) -> None: + env = dict(os.environ, **_BUILD_ENV) + with tempfile.TemporaryDirectory( + prefix="tmux-source-", dir=prefix.parent + ) as temporary: + work = pathlib.Path(temporary) + version = identity["version"] + if version == "master": + source = work / "tmux" + subprocess.run(["git", "init", str(source)], check=True) + subprocess.run( + [ + "git", + "-C", + str(source), + "fetch", + "--depth=1", + _REPOSITORY, + identity["source"], + ], + check=True, + ) + subprocess.run( + ["git", "-C", str(source), "checkout", "--detach", "FETCH_HEAD"], + check=True, + ) + if ( + _output(["git", "-C", str(source), "rev-parse", "HEAD"]) + != identity["source"] + ): + msg = "Fetched tmux commit differs from the cache identity" + raise ValueError(msg) + subprocess.run(["sh", "autogen.sh"], check=True, cwd=source, env=env) + else: + archive = work / "tmux.tar.gz" + subprocess.run( + [ + "curl", + "--fail", + "--location", + "--retry", + "2", + "--output", + str(archive), + f"https://github.com/tmux/tmux/releases/download/{version}/tmux-{version}.tar.gz", + ], + check=True, + ) + if _sha256(archive) != identity["source"]: + msg = "Downloaded tmux archive does not match its pinned SHA256" + raise ValueError(msg) + subprocess.run( + [ + "tar", + "--extract", + "--gzip", + "--file", + str(archive), + "--directory", + str(work), + "--no-same-owner", + "--no-same-permissions", + ], + check=True, + ) + source = work / f"tmux-{version}" + subprocess.run( + ["./configure", f"--prefix={prefix}"], check=True, cwd=source, env=env + ) + jobs = min(4, len(os.sched_getaffinity(0))) + subprocess.run(["make", f"-j{jobs}"], check=True, cwd=source, env=env) + subprocess.run(["make", "install"], check=True, cwd=source, env=env) + + +def _prepare(prefix: pathlib.Path, identity: dict[str, str]) -> bool: + if _valid(prefix, identity): + print(f"Validated cached tmux {identity['version']}", flush=True) + return False + if prefix.is_symlink(): + prefix.unlink() + elif prefix.exists(): + shutil.rmtree(prefix) + _build(prefix, identity) + binary = prefix / "bin" / "tmux" + _probe(binary, identity["version"]) + (prefix / "build.json").write_text( + json.dumps( + { + "identity": identity, + "sha256": _sha256(binary), + }, + sort_keys=True, + ) + + "\n" + ) + return True + + +def _main() -> None: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("phase", choices=["plan", "prepare"]) + parser.add_argument("version", choices=[*_RELEASES, "master"]) + args = parser.parse_args() + root = pathlib.Path(os.environ["RUNNER_TEMP"]).resolve(strict=True) + prefix = root / f"tmux-{args.version}" + plan = root / f"tmux-{args.version}.json" + if args.phase == "plan": + identity = _identity(args.version) + plan.write_text(json.dumps(identity, sort_keys=True) + "\n") + print(json.dumps(identity, indent=2), flush=True) + with pathlib.Path(os.environ["GITHUB_OUTPUT"]).open("a") as output: + output.write(f"prefix={prefix}\nkey={_cache_key(identity)}\n") + else: + identity = json.loads(plan.read_text()) + if identity["version"] != args.version: + msg = "Build plan version does not match the requested tmux" + raise ValueError(msg) + rebuilt = _prepare(prefix, identity) + if rebuilt and os.environ.get("CACHE_HIT") == "true": + print( + "::warning::Invalid exact cache rebuilt locally. Change the build " + "recipe to invalidate the immutable cache entry on subsequent runs." + ) + with pathlib.Path(os.environ["GITHUB_PATH"]).open("a") as output: + output.write(f"{prefix / 'bin'}\n") + + +if __name__ == "__main__": + _main() diff --git a/.github/tmux-releases.toml b/.github/tmux-releases.toml new file mode 100644 index 0000000000..7ea3076779 --- /dev/null +++ b/.github/tmux-releases.toml @@ -0,0 +1,10 @@ +# SHA256 pins for official tmux release archives. +# https://github.com/tmux/tmux/releases + +[releases] +"3.2a" = "551553a4f82beaa8dadc9256800bcc284d7c000081e47aa6ecbb6ff36eacd05f" +"3.3a" = "e4fd347843bd0772c4f48d6dde625b0b109b7a380ff15db21e97c11a4dcdf93f" +"3.4" = "551ab8dea0bf505c0ad6b7bb35ef567cdde0ccb84357df142c254f35a23e19aa" +"3.5" = "2fe01942e7e7d93f524a22f2c883822c06bc258a4d61dba4b407353d7081950f" +"3.6" = "136db80cfbfba617a103401f52874e7c64927986b65b1b700350b6058ad69607" +"3.7" = "2344f191501b8a73eb71dd6c5fd5dcf8c765f5066f34ab46f04b3013dc7bc1a5" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d7eb3357e8..c6eb912dff 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,37 +38,52 @@ jobs: - name: Install dependencies run: uv sync --all-extras --dev - - name: Setup tmux build cache for tmux ${{ matrix.tmux-version }} + - name: Install tmux build and runtime dependencies + run: | + sudo apt-get update + sudo apt-get install --yes --no-install-recommends \ + autoconf automake bison build-essential libevent-dev \ + libncurses-dev libutempter-dev pkg-config + + - name: Identify tmux source and build environment + id: tmux-build + run: uv run python .github/scripts/tmux_build.py plan "$TMUX_VERSION" + env: + TMUX_VERSION: ${{ matrix.tmux-version }} + + - name: Restore tmux ${{ matrix.tmux-version }} id: tmux-build-cache - uses: actions/cache@v6 + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: - path: ~/tmux-builds/tmux-${{ matrix.tmux-version }} - key: tmux-${{ matrix.tmux-version }} + path: ${{ steps.tmux-build.outputs.prefix }} + key: ${{ steps.tmux-build.outputs.key }} + + - name: Validate or rebuild tmux ${{ matrix.tmux-version }} + run: uv run python .github/scripts/tmux_build.py prepare "$TMUX_VERSION" + env: + TMUX_VERSION: ${{ matrix.tmux-version }} + CACHE_HIT: ${{ steps.tmux-build-cache.outputs.cache-hit }} - - name: Build tmux ${{ matrix.tmux-version }} + - name: Save validated tmux ${{ matrix.tmux-version }} if: steps.tmux-build-cache.outputs.cache-hit != 'true' - run: | - sudo apt-get update - sudo apt install libevent-dev libncurses5-dev libtinfo-dev libutempter-dev bison - mkdir ~/tmux-builds - mkdir ~/tmux-src - git clone https://github.com/tmux/tmux.git ~/tmux-src/tmux-${{ matrix.tmux-version }} - cd ~/tmux-src/tmux-${{ matrix.tmux-version }} - git checkout ${{ matrix.tmux-version }} - sh autogen.sh - ./configure --prefix=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }} && make && make install - export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH - cd ~ - tmux -V + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: ${{ steps.tmux-build.outputs.prefix }} + key: ${{ steps.tmux-build.outputs.key }} - - name: Lint with ruff check . - run: uv run ruff check . + - name: Test native cache recovery + run: uv run pytest .github/scripts/test_tmux_build.py --reruns=0 - - name: Format with ruff - run: uv run ruff format . --check + - name: Lint with ruff check + run: uv run ruff check . .github/scripts + + - name: Format with ruff format + run: uv run ruff format . .github/scripts --check - name: Lint with mypy - run: uv run mypy . + run: | + uv run mypy . + uv run mypy --python-version 3.11 .github/scripts - name: Print python versions run: | @@ -78,10 +93,6 @@ jobs: - name: Test with pytest continue-on-error: ${{ matrix.tmux-version == 'master' }} run: | - sudo apt-get update - sudo apt install libevent-2.1-7 - export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH - ls $HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin tmux -V uv run py.test --cov=./ --cov-report=xml --verbose diff --git a/pyproject.toml b/pyproject.toml index 353e92142b..90743ecf71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -204,6 +204,9 @@ ignore_missing_imports = true [tool.ruff] target-version = "py310" +[tool.ruff.per-file-target-version] +".github/scripts/*.py" = "py311" + [tool.ruff.lint] # `select` is deliberately unset: ruff 0.16 enables a curated default rule # set, and an explicit `select` would replace it rather than extend it. From f0e9db323223a673a5758c92dc017c98e9a540bb Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 7 Nov 2026 11:10:05 -0600 Subject: [PATCH 2/2] CHANGES(docs): CI cache recovery why: Contributors should see that CI now recovers from incompatible cached tmux installations. what: - Summarize the rebuild of incompatible cached tmux installations - Mention the TOML release checksum pins --- CHANGES | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGES b/CHANGES index 0d37d9d736..8206347f33 100644 --- a/CHANGES +++ b/CHANGES @@ -94,6 +94,11 @@ module layout renders as a highlighted directory tree. ### Development +#### CI recovers from incompatible tmux caches + +CI rebuilds incompatible cached tmux installations before running tests. +Release downloads use checksum pins in `.github/tmux-releases.toml`. + #### CI actions updated to current majors Workflow actions moved to their current major releases: `actions/checkout` v7,