litellm/.github/actions/setup-rust-toolchain/action.yml
yuneng-berri 15526feb6a
ci: install stable Rust toolchain before building the package
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
2026-07-30 17:41:40 +00:00

17 lines
682 B
YAML

name: "Set up Rust toolchain"
description: >-
Install the latest stable Rust toolchain and make it the default. Installing
the litellm package builds litellm-rust through maturin, and the crates
pinned in litellm-rust/Cargo.lock require a newer rustc than some runner
images ship by default, which fails the build with "rustc <version> is not
supported by the following packages". Pull stable explicitly instead of
relying on whatever rustc the image happens to default to.
runs:
using: composite
steps:
- name: Install stable Rust toolchain
shell: bash
run: |
rustup toolchain install stable --profile minimal
rustup default stable