Skip to content

Commit

Permalink
CI: Explicitly install rust using dtolnay/rust-toolchain@master and…
Browse files Browse the repository at this point in the history
… install mdbook using `taiki-e/install-action@v2`
  • Loading branch information
oeb25 committed Jan 4, 2024
1 parent cf31ddf commit e94b83c
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/authenticate_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
options: --health-cmd "cqlsh --username cassandra --password cassandra --debug" --health-interval 5s --health-retries 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --verbose authenticate_superuser -- custom_authentication --ignored
7 changes: 6 additions & 1 deletion .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@ jobs:
options: --health-cmd "cqlsh --debug scylladb" --health-interval 5s --health-retries 10
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Install mdbook
run: cargo install mdbook --no-default-features
uses: taiki-e/install-action@v2
with:
tool: mdbook
- name: Build the project
run: cargo build --verbose --examples
- name: Build the book
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
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
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Build the project
run: cargo build --verbose --tests --features "full-serialization"
- name: Run tests on cassandra
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ 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: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Format check
run: cargo fmt --verbose --all -- --check
Expand Down Expand Up @@ -62,9 +66,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Rust ${{ env.rust_min }}
run: |
rustup install ${{ env.rust_min }}
rustup override set ${{ env.rust_min }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.rust_min }}
- uses: Swatinem/rust-cache@v2
- name: Print Rust version
run: rustc --version
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
ccm create serverless -i 127.0.1. -n 1 --scylla -v release:5.1.6
ccm start --sni-proxy --sni-port 7777
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check --verbose
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
working-directory: ./scylla
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check --verbose --features "ssl"
Expand Down

0 comments on commit e94b83c

Please sign in to comment.