Skip to content

Commit

Permalink
Add Swatinem/rust-cache@v2 to CI
Browse files Browse the repository at this point in the history
This adds caching to all CI jobs that use cargo
  • Loading branch information
oeb25 committed Jan 4, 2024
1 parent c23cad4 commit cf31ddf
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/authenticate_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions .github/workflows/serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit cf31ddf

Please sign in to comment.