From 5ba47f981c9cf1a7323fd4b05abce86a8fac7757 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Mon, 9 Jun 2025 06:49:39 +0000 Subject: [PATCH] ci: Add caching --- .github/workflows/main.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 5d63d558..e212d2d1 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -20,6 +20,9 @@ jobs: - uses: actions/checkout@master - name: Install Rust run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} + - uses: Swatinem/rust-cache@v2 + with: + key: ${{ matrix.target }} - run: cargo test doc_fmt: @@ -32,6 +35,7 @@ jobs: rustup update nightly rustup default nightly rustup component add rustfmt + - uses: Swatinem/rust-cache@v2 - run: cargo doc - run: cargo fmt --check @@ -45,4 +49,5 @@ jobs: jq -r '.packages[] | select(.name == "getopts").rust_version' )" rustup update "$msrv" && rustup default "$msrv" + - uses: Swatinem/rust-cache@v2 - run: cargo check