diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index cce6c5cf..ec9cb456 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -16,9 +16,15 @@ jobs: steps: - uses: actions/checkout@v4 - # rust-toolchain.toml names the toolchain and its components. + # rust-toolchain.toml names the toolchain and its components. The runner + # image's rustup (1.27) cannot read the channel from that file in + # `rustup toolchain install`, so pass it explicitly; rustup installs the + # file's components when the toolchain is first used. - name: Install Rust toolchain - run: rustup toolchain install + run: | + channel=$(sed -n 's/^channel = "\(.*\)"$/\1/p' rust-toolchain.toml) + rustup toolchain install "$channel" --profile minimal + rustup show active-toolchain # Runner environment overrides workflow-level CARGO_TARGET_DIR. Set it on # each Cargo process so trybuild's generated crate stays under this workspace diff --git a/csemver.toml b/csemver.toml index a7c657a6..4d684d3e 100644 --- a/csemver.toml +++ b/csemver.toml @@ -17,6 +17,21 @@ releaseCommitMessageFormat = "chore(release): {{currentTag}}" commitUrlFormat = "https://github.com/SolverForge/solverforge/commit/{{hash}}" compareUrlFormat = "https://github.com/SolverForge/solverforge/compare/{{previousTag}}...{{currentTag}}" +# Commit types and their changelog sections. Declaring the list replaces +# csemver's default, which hides refactor: refactor commits get their own +# section, and the remaining types keep the default hidden state. This must +# stay above the first table header, or TOML scopes it into that table. +types = [ + { type = "feat", section = "Features" }, + { type = "fix", section = "Bug Fixes" }, + { type = "refactor", section = "Code Refactoring" }, + { type = "chore", hidden = true }, + { type = "docs", hidden = true }, + { type = "style", hidden = true }, + { type = "perf", hidden = true }, + { type = "test", hidden = true }, +] + packageFiles = [ # Reads the workspace version (the single source of truth; every crate # manifest inherits it through version.workspace = true).