From a5d37baa37de2cabfdf87a9becea085f85befa21 Mon Sep 17 00:00:00 2001 From: Noah Joeris Date: Fri, 10 Apr 2026 18:14:42 +0300 Subject: [PATCH] ci: update CI actions and enable caching --- .github/workflows/rust.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ebb8b53..83c0228 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,11 +20,12 @@ jobs: - --no-default-features --features miniscript/no-std - --all-features steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install Rust - uses: dtolnay/rust-toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: - toolchain: ${{ matrix.rust.version }} + toolchain: ${{ matrix.rust.version }} + cache: true - name: Pin dependencies for MSRV if: matrix.rust.version == '1.85.0' run: ./ci/pin-msrv.sh @@ -38,23 +39,25 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: - toolchain: stable + toolchain: stable + cache: true - name: Check no-std run: cargo check --no-default-features --features miniscript/no-std fmt-clippy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install Rust - uses: dtolnay/rust-toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: - toolchain: stable - components: clippy, rustfmt + toolchain: stable + components: clippy, rustfmt + cache: true - name: Rust fmt run: cargo fmt --all -- --check - name: Clippy