Skip to content

Install termlens-cli prebuilt in CI instead of compiling it on every run #48

Description

@vyncint

Today — the default Linux test lane runs make test-termlens-cli, whose #[ignore]d suite installs the tool with cargo install termlens-cli --version <lock version> (crates/oxidelake-tui/tests/termlens_cli.rs:100), compiling it from source on every run; cache-bin: false means it is never reused. The other tools are prebuilt: cargo-deny via EmbarkStudios/cargo-deny-action, cargo-semver-checks via its action, zizmor via pipx run zizmor==1.29.0.

Fix — install termlens-cli prebuilt (cargo-binstall, or taiki-e/install-action pinned by full SHA looked up with gh api, at exactly the version Cargo.lock names) in a workflow step, and have the test use the binary on PATH when TERMLENS_CLI is set, falling back to cargo install only for local --ignored runs. No cache: the rule for this ecosystem's workflows is prebuilt tools, not cached builds.

Done when — the test lane's termlens-cli step takes seconds, not minutes; the version installed is asserted equal to the lockfile's in the test.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions