Skip to content

Switchyard lets LLM applications route traffic across models and providers while preserving native OpenAI and Anthropic API compatibility - enabling flexible model selection, benchmarking, and cost/performance optimization.

Rust

ci: trial main-owned Rust caching (#679)

Alex Fournier50c93d6534f4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7c59bc0f6..218fb1a23 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -110,6 +110,10 @@ jobs:
- uses: actions/checkout@v4
- name: Install Rust components
run: rustup component add rustfmt clippy
+ - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
+ with:
+ cache-bin: false
+ save-if: ${{ github.ref == 'refs/heads/main' }}
- name: cargo fmt
run: cargo fmt --all --check
- name: cargo clippy