mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
ci(mcp-deps): build unoptimized in the MCP dependency resolution workflow (#51684)
The workflow checks packaging, installation and imports, but it compiled the Rust workspace with the release profile's fat LTO and opt-level 3, which pushed its jobs to the 30 minute timeout. Three Cargo environment variables now make that profile build unoptimized for this workflow only.
This commit is contained in:
parent
6021db5bba
commit
e4b238f3fc
1 changed files with 10 additions and 0 deletions
|
|
@ -38,6 +38,16 @@ concurrency:
|
|||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
# These jobs check packaging, installation and imports, so they build the Rust
|
||||
# workspace unoptimized. The release profile's fat LTO and opt-level 3 pushed
|
||||
# every job to its timeout. The overrides go through Cargo's environment
|
||||
# because a maturin `--profile ci` argument also reaches dependencies that
|
||||
# build from source, such as jiter on Python 3.15, which have no ci profile
|
||||
env:
|
||||
CARGO_PROFILE_RELEASE_OPT_LEVEL: "0"
|
||||
CARGO_PROFILE_RELEASE_LTO: "off"
|
||||
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: "256"
|
||||
|
||||
jobs:
|
||||
resolve:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue