Skip to content

Commit d49e8ad

Browse files
committed
Cache all crates for citool
Even the local workspace ones, since they almost never change.
1 parent 1434630 commit d49e8ad

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,20 @@ jobs:
6464
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
6565
with:
6666
workspaces: src/ci/citool
67+
cache-all-crates: true
6768
- name: Test citool
6869
# Only test citool on the auto branch, to reduce latency of the calculate matrix job
6970
# on PR/try builds.
7071
if: ${{ github.ref == 'refs/heads/auto' }}
7172
run: |
7273
cd src/ci/citool
73-
CARGO_INCREMENTAL=0 cargo test
74+
cargo test
7475
- name: Calculate the CI job matrix
7576
env:
7677
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
7778
run: |
7879
cd src/ci/citool
79-
CARGO_INCREMENTAL=0 cargo run calculate-job-matrix >> $GITHUB_OUTPUT
80+
cargo run calculate-job-matrix >> $GITHUB_OUTPUT
8081
id: jobs
8182
job:
8283
name: ${{ matrix.full_name }}

src/ci/citool/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use crate::jobs::RunType;
2525
use crate::metrics::{JobMetrics, download_auto_job_metrics, download_job_metrics, load_metrics};
2626
use crate::test_dashboard::generate_test_dashboard;
2727
use crate::utils::{load_env_var, output_details};
28-
28+
// foo
2929
const CI_DIRECTORY: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/..");
3030
pub const DOCKER_DIRECTORY: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/../docker");
3131
const JOBS_YML_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/../github-actions/jobs.yml");

0 commit comments

Comments
 (0)