Forgejo drop-in for dtolnay/rust-toolchain: install a Rust toolchain via rustup (components, targets, profile). No github.com.
- Shell 84.6%
- Makefile 15.4%
Org migration: the action family now lives under fjord/. Repoints internal repo references (uses:, CI badges, docs, migration guides) at fjord/ and sets the action author to fjord. The old rasterstate copies are left in place. |
||
|---|---|---|
| .forgejo/workflows | ||
| scripts | ||
| tests | ||
| .gitignore | ||
| action.yml | ||
| CHANGELOG.md | ||
| LICENSE | ||
| Makefile | ||
| MIGRATION.md | ||
| README.md | ||
Setup Rust (Forgejo)
Forgejo's dtolnay/rust-toolchain. Install a Rust toolchain with rustup on
a self-hosted Forgejo runner: channel or pinned version, components, targets,
profile. rustup comes from sh.rustup.rs and toolchains from
static.rust-lang.org, so nothing here depends on github.com or a PAT.
Part of the Fjord Actions
bundle. Pairs with
rust-cache-action for
the cargo cache.
Usage
jobs:
build:
runs-on: [self-hosted, Linux]
steps:
- uses: actions/checkout@v6
- uses: https://rasterhub.com/fjord/setup-rust-action@v1
with:
toolchain: stable
components: rustfmt, clippy
- uses: https://rasterhub.com/fjord/rust-cache-action@v1
- run: cargo test --all --locked
Inputs
| Input | Default | Description |
|---|---|---|
toolchain |
stable |
Channel (stable/beta/nightly), version (1.79.0), or dated nightly (nightly-2026-01-01). |
targets |
Cross-compile targets to add, comma or space separated. | |
components |
Extra components (e.g. rustfmt, clippy), comma or space separated. |
|
profile |
minimal |
rustup profile: minimal / default / complete. |
override |
true |
Set the installed toolchain as the default (rustup default). |
Outputs
| Output | Description |
|---|---|
version |
The installed rustc version string. |
cachekey |
Short hash of rustc -vV, handy as a cache-key segment. |
Notes
- If rustup is already on the runner it's used as-is; otherwise it's installed
non-interactively with the chosen
profile.~/.cargo/binis added toGITHUB_PATHfor later steps. - This action does not cache anything. Use
rust-cache-actionfor the cargo registry/target cache; passcachekeyinto your own cache key if you cache manually.
See MIGRATION.md for differences from dtolnay/rust-toolchain.
License
MIT, see LICENSE.