Skip to content

ci: install Rust with rustup and match the current release and Dependabot templates - #19

Merged
MotherSphere merged 1 commit into
mainfrom
ci/refresh-colony-templates
Oct 14, 2026
Merged

MotherSphere merged 1 commit into
mainfrom
ci/refresh-colony-templates

Conversation

@MotherSphere

Copy link
Copy Markdown
Member

Brings the workflow and Dependabot files back in line with the current Project-Colony-Resources templates. Rust source stays the same.

Changes

  • .github/workflows/release.yml: re-copied from templates/sign-and-publish-caller.yml (Resources main, after chore(deps): bump the cargo-minor group with 4 updates #20) with {{APP_NAME}} = shift. The template changed in one place: the build job's Install Rust step now uses rustup (stable, minimal profile, rustup target add for the matrix target) instead of the dtolnay/rust-toolchain pin. The sign-and-publish.yml organisation pin stays at 619460ff4dc0049f129955f0988d368427b9eedb.
  • .github/dependabot.yml: copied byte for byte from templates/dependabot.yml. The ignore rule is now Project-Colony/Project-Colony-Resources*. Dependabot names the shared workflow after its path, so without the trailing wildcard it could open PRs that move the organisation pin (Resources feat: ship the binary as shift and answer --version #14).
  • .github/workflows/ci.yml: all four dtolnay/rust-toolchain steps now use the rustup step from design/dependencies.md (Toolchain), with shell: bash so it runs the same way on the Windows and macOS legs. The MSRV job installs the rust-version it reads from Cargo.toml (1.88) and makes it the default. It passes the version through the existing RUSTUP_TOOLCHAIN env var, so run: contains no template expansion. The clippy and rustfmt jobs run rustup component add for their component. The checkout and rust-cache SHA pins stay as they were.

Verification

  • sed 's/{{APP_NAME}}/shift/g' templates/sign-and-publish-caller.yml | diff - .github/workflows/release.yml prints nothing, and no {{APP_NAME remains.
  • cmp templates/dependabot.yml .github/dependabot.yml prints nothing.
  • No dtolnay/rust-toolchain reference is left in the repository. All three files parse as YAML.
  • CI on this PR runs the new install steps on Linux, Windows and macOS, the 1.88 floor, clippy and rustfmt.

…abot templates

- release.yml: re-copy the Project-Colony-Resources sign-and-publish caller
  template. The build job now installs Rust with rustup (stable, minimal
  profile, plus the matrix target) instead of the dtolnay/rust-toolchain
  pin. The sign-and-publish.yml organisation pin stays at 619460ff.
- dependabot.yml: copy the current template, whose ignore rule ends with a
  wildcard so it matches the shared signing workflow and Dependabot never
  moves the organisation pin.
- ci.yml: replace the four dtolnay/rust-toolchain steps with the rustup
  step from design/dependencies.md. The MSRV job installs the rust-version
  read from Cargo.toml (1.88); clippy and rustfmt add their component.
@MotherSphere
MotherSphere merged commit b71e205 into main Oct 14, 2026
9 checks passed
@MotherSphere
MotherSphere deleted the ci/refresh-colony-templates branch October 14, 2026 10:33
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.

1 participant