diff --git a/.github/workflows/authenticate_test.yml b/.github/workflows/authenticate_test.yml index b93418d299..e3b186389d 100644 --- a/.github/workflows/authenticate_test.yml +++ b/.github/workflows/authenticate_test.yml @@ -27,5 +27,6 @@ jobs: options: --health-cmd "cqlsh --username cassandra --password cassandra --debug" --health-interval 5s --health-retries 30 steps: - uses: actions/checkout@v3 + - uses: Swatinem/rust-cache@v2 - name: Run tests run: cargo test --verbose authenticate_superuser -- custom_authentication --ignored diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index d476929923..01a32ea356 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -27,6 +27,7 @@ jobs: options: --health-cmd "cqlsh --debug scylladb" --health-interval 5s --health-retries 10 steps: - uses: actions/checkout@v3 + - uses: Swatinem/rust-cache@v2 - name: Install mdbook run: cargo install mdbook --no-default-features - name: Build the project diff --git a/.github/workflows/cassandra.yml b/.github/workflows/cassandra.yml index 712099ee69..5cdb13c3e8 100644 --- a/.github/workflows/cassandra.yml +++ b/.github/workflows/cassandra.yml @@ -25,6 +25,7 @@ jobs: run: | docker compose -f test/cluster/cassandra/docker-compose.yml up -d --wait # A separate step for building to separate measuring time of compilation and testing + - uses: Swatinem/rust-cache@v2 - name: Build the project run: cargo build --verbose --tests --features "full-serialization" - name: Run tests on cassandra diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 845ac87a2e..bb0df2c846 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -26,6 +26,7 @@ jobs: run: | sudo sh -c "echo 2097152 >> /proc/sys/fs/aio-max-nr" docker compose -f test/cluster/docker-compose.yml up -d --wait + - uses: Swatinem/rust-cache@v2 - name: Format check run: cargo fmt --verbose --all -- --check - name: Clippy check @@ -64,6 +65,7 @@ jobs: run: | rustup install ${{ env.rust_min }} rustup override set ${{ env.rust_min }} + - uses: Swatinem/rust-cache@v2 - name: Print Rust version run: rustc --version - name: Use MSRV Cargo.lock @@ -80,5 +82,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: Swatinem/rust-cache@v2 - name: Compile docs run: RUSTDOCFLAGS=-Dwarnings cargo doc diff --git a/.github/workflows/serverless.yaml b/.github/workflows/serverless.yaml index 477e737343..ab1026d547 100644 --- a/.github/workflows/serverless.yaml +++ b/.github/workflows/serverless.yaml @@ -30,6 +30,7 @@ jobs: ccm create serverless -i 127.0.1. -n 1 --scylla -v release:5.1.6 ccm start --sni-proxy --sni-port 7777 + - uses: Swatinem/rust-cache@v2 - name: Check run: cargo check --verbose - name: Run cloud example diff --git a/.github/workflows/tls.yml b/.github/workflows/tls.yml index 94d3b4926c..9d8ae5fdd7 100644 --- a/.github/workflows/tls.yml +++ b/.github/workflows/tls.yml @@ -32,6 +32,7 @@ jobs: working-directory: ./scylla steps: - uses: actions/checkout@v3 + - uses: Swatinem/rust-cache@v2 - name: Check run: cargo check --verbose --features "ssl" working-directory: ${{env.working-directory}}