Skip to content

Shared setup-devkit-toolchain composite action (mode-aware step-level provisioning) #994

Closed

Description

@c-vigo

Description

New scaffolded composite action .github/actions/setup-devkit-toolchain/action.yml
— the single step-level toolchain preamble for every scaffolded workflow job.
Reads DEVKIT_MODE + DEVKIT_VERSION from .vig-os and branches:

  • container → provisioning no-op: export UV_PROJECT_ENVIRONMENT,
    PREK_HOME, apply the git safe.directory fix, prek version-skew guard
    (all the container-only pieces currently inlined per job)
  • direnv → install-nix-action + vig-os Cachix substituter +
    nix develop --profile on the repo's own flake, prepend dev-shell bins to
    GITHUB_PATH (the devkit's own .github/actions/setup-env pattern)
  • bare → astral-sh/setup-uv + pinned uv tool install (rust-just, prek,
    vig-utils per Expose vig-utils console scripts host-side (dev-shell + pinned uv-tool path) #993), prepend to GITHUB_PATH

All host branches install the retry shim via BASH_ENV (from setup-env).
After the composite runs, plain run: just sync / gh / prepare-changelog
steps work identically in every mode — the choreography steps stay untouched.

Acceptance Criteria

Implementation Notes

Job-level container:/image selection stays OUTSIDE the composite — mechanism
decided by the #992 spike (Option A conditional container vs Option B
host-always for the release set).

Related Issues

Depends on #992, #993. Consumed by #991. Part of #988.

Activity

  1. added
    feature
    area:ci
    effort:medium
    semver:minor
    on Jul 13, 2026
  2. c-vigo commented on Jul 13, 2026

    @c-vigo
    ContributorAuthor

    Merged into the epic branch via #1002. Both composites ship in every mode; review finding (silent host-mode fallback on corrupt DEVKIT_MODE) fixed with a closed validation case. Verified locally in the dev-shell: 150/150 bats green, full hook suite green.

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

    area:cieffort:mediumfeaturesemver:minor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions