From b6add039e90e540d1628492e26418d7856ce0058 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Mon, 1 May 2023 15:52:28 -0700 Subject: [PATCH] Test: alternative cargo cache method --- .github/workflows/validate.yml | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 665c34945..493f36bea 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -9,30 +9,16 @@ jobs: git config --global core.autocrlf input - name: checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 + uses: actions/checkout@v3 + with: + fetch-depth: 0 - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: x86_64-unknown-linux-gnu - override: true - components: rustfmt, clippy - - - name: Set up cargo cache - uses: actions/cache@v3 - continue-on-error: false - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - **/target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} - restore-keys: ${{ runner.os }}-cargo- + - run: | + rustup set auto-self-update disable + rustup toolchain install stable --profile minimal + - uses: Swatinem/rust-cache@v2 + with: + workspaces: zeroidc -> target - name: validate-1m-linux env: