Skip to content

Visual Studio Code, rebuilt in Rust

Rust

ci: save the Rust cache of the macOS safety job only

rokartur6e61ee3307f6
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
index 561ef94ceca..587054f4ac7 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -1,5 +1,9 @@
name: Setup
description: Toolchains, VS Code 1.148.0 in upstream/ (installed, compiled, built-in extensions fetched) and the extension host bundle, as the Studio's reference checkout has them.
+inputs:
+ save-rust-cache:
+ description: Save the Rust cache on main. The 10 GB repository cache limit fits the test jobs and the macOS safety job, not every job.
+ default: 'true'
runs:
using: composite
@@ -58,7 +62,7 @@ runs:
with:
workspaces: native
cache-on-failure: true
- save-if: ${{ github.ref == 'refs/heads/main' }}
+ save-if: ${{ github.ref == 'refs/heads/main' && inputs.save-rust-cache == 'true' }}
# port/patches apply in build-exthost, after this cache, so the key has only what the install and compile read.
- id: upstream
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ba25dbbfb8e..1dd29e32964 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -68,7 +68,10 @@ jobs:
timeout-minutes: 90
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ # Cold, clippy took 626 s on macOS, as long as the warm test job; on Linux it stays off the critical path.
- uses: ./.github/actions/setup
+ with:
+ save-rust-cache: ${{ matrix.os == 'macos' }}
- working-directory: native
run: cargo clippy -p app -p exthost --all-targets --locked -- -A clippy::all