mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
ci: install stable Rust toolchain before building the package
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
This commit is contained in:
parent
87cf837e13
commit
15526feb6a
14 changed files with 60 additions and 0 deletions
17
.github/actions/setup-rust-toolchain/action.yml
vendored
Normal file
17
.github/actions/setup-rust-toolchain/action.yml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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
|
||||
3
.github/workflows/_test-unit-base.yml
vendored
3
.github/workflows/_test-unit-base.yml
vendored
|
|
@ -62,6 +62,9 @@ jobs:
|
|||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: ./.github/actions/setup-rust-toolchain
|
||||
|
||||
- name: Set up uv
|
||||
uses: ./.github/actions/setup-uv-with-retries
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ jobs:
|
|||
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Rust toolchain
|
||||
uses: ./.github/actions/setup-rust-toolchain
|
||||
- name: Set up uv
|
||||
uses: ./.github/actions/setup-uv-with-retries
|
||||
with:
|
||||
|
|
|
|||
3
.github/workflows/check-ui-api-types.yml
vendored
3
.github/workflows/check-ui-api-types.yml
vendored
|
|
@ -30,6 +30,9 @@ jobs:
|
|||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: ./.github/actions/setup-rust-toolchain
|
||||
|
||||
- name: Set up uv
|
||||
uses: ./.github/actions/setup-uv-with-retries
|
||||
with:
|
||||
|
|
|
|||
5
.github/workflows/codspeed.yml
vendored
5
.github/workflows/codspeed.yml
vendored
|
|
@ -12,6 +12,7 @@ on:
|
|||
- "uv.lock"
|
||||
- ".github/workflows/codspeed.yml"
|
||||
- ".github/actions/setup-uv-with-retries/**"
|
||||
- ".github/actions/setup-rust-toolchain/**"
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
|
@ -23,6 +24,7 @@ on:
|
|||
- "uv.lock"
|
||||
- ".github/workflows/codspeed.yml"
|
||||
- ".github/actions/setup-uv-with-retries/**"
|
||||
- ".github/actions/setup-rust-toolchain/**"
|
||||
# Allow CodSpeed to trigger backtest performance analysis
|
||||
# in order to generate initial data
|
||||
workflow_dispatch:
|
||||
|
|
@ -50,6 +52,9 @@ jobs:
|
|||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: ./.github/actions/setup-rust-toolchain
|
||||
|
||||
- name: Set up uv
|
||||
uses: ./.github/actions/setup-uv-with-retries
|
||||
with:
|
||||
|
|
|
|||
3
.github/workflows/mutation-test.yml
vendored
3
.github/workflows/mutation-test.yml
vendored
|
|
@ -38,6 +38,9 @@ jobs:
|
|||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: ./.github/actions/setup-rust-toolchain
|
||||
|
||||
- name: Set up uv
|
||||
uses: ./.github/actions/setup-uv-with-retries
|
||||
with:
|
||||
|
|
|
|||
3
.github/workflows/test-code-quality.yml
vendored
3
.github/workflows/test-code-quality.yml
vendored
|
|
@ -37,6 +37,9 @@ jobs:
|
|||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: ./.github/actions/setup-rust-toolchain
|
||||
|
||||
- name: Set up uv
|
||||
uses: ./.github/actions/setup-uv-with-retries
|
||||
with:
|
||||
|
|
|
|||
6
.github/workflows/test-linting.yml
vendored
6
.github/workflows/test-linting.yml
vendored
|
|
@ -32,6 +32,9 @@ jobs:
|
|||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: ./.github/actions/setup-rust-toolchain
|
||||
|
||||
- name: Set up uv
|
||||
uses: ./.github/actions/setup-uv-with-retries
|
||||
with:
|
||||
|
|
@ -172,6 +175,9 @@ jobs:
|
|||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: ./.github/actions/setup-rust-toolchain
|
||||
|
||||
- name: Set up uv
|
||||
uses: ./.github/actions/setup-uv-with-retries
|
||||
with:
|
||||
|
|
|
|||
3
.github/workflows/test-mcp.yml
vendored
3
.github/workflows/test-mcp.yml
vendored
|
|
@ -31,6 +31,9 @@ jobs:
|
|||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: ./.github/actions/setup-rust-toolchain
|
||||
|
||||
- name: Set up uv
|
||||
uses: ./.github/actions/setup-uv-with-retries
|
||||
with:
|
||||
|
|
|
|||
3
.github/workflows/test-model-map.yaml
vendored
3
.github/workflows/test-model-map.yaml
vendored
|
|
@ -23,6 +23,9 @@ jobs:
|
|||
run: |
|
||||
jq empty model_prices_and_context_window.json
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: ./.github/actions/setup-rust-toolchain
|
||||
|
||||
- name: Set up uv
|
||||
uses: ./.github/actions/setup-uv-with-retries
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -73,6 +73,9 @@ jobs:
|
|||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: ./.github/actions/setup-rust-toolchain
|
||||
|
||||
- name: Set up uv
|
||||
uses: ./.github/actions/setup-uv-with-retries
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -41,6 +41,9 @@ jobs:
|
|||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: ./.github/actions/setup-rust-toolchain
|
||||
|
||||
- name: Set up uv
|
||||
uses: ./.github/actions/setup-uv-with-retries
|
||||
with:
|
||||
|
|
|
|||
3
.github/workflows/test-unit-proxy-legacy.yml
vendored
3
.github/workflows/test-unit-proxy-legacy.yml
vendored
|
|
@ -58,6 +58,9 @@ jobs:
|
|||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: ./.github/actions/setup-rust-toolchain
|
||||
|
||||
- name: Set up uv
|
||||
uses: ./.github/actions/setup-uv-with-retries
|
||||
with:
|
||||
|
|
|
|||
3
.github/workflows/weekly_load_anomaly.yml
vendored
3
.github/workflows/weekly_load_anomaly.yml
vendored
|
|
@ -42,6 +42,9 @@ jobs:
|
|||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: ./.github/actions/setup-rust-toolchain
|
||||
|
||||
- name: Set up uv
|
||||
uses: ./.github/actions/setup-uv-with-retries
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue