Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 6 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ jobs:
working-directory: zenoh-jni
run: cargo fmt --all --check

- name: Clippy Check
- name: Clippy Check without Cargo.lock
working-directory: zenoh-jni
run: cargo clippy --all-targets --all-features -- -D warnings
run: |
mv Cargo.lock Cargo.lock.bak
cargo clippy --all-targets --all-features -- -D warnings
mv Cargo.lock.bak Cargo.lock

- name: Check for feature leaks
working-directory: zenoh-jni
Expand All @@ -67,28 +70,6 @@ jobs:
config: '.markdownlint.yaml'
globs: '**/README.md'

check_rust:
name: Check zenoh-java using Rust 1.75
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Clone this repository
uses: actions/checkout@v4

- name: Update Rust 1.75.0 toolchain
run: rustup update 1.75.0

- name: Setup rust-cache
uses: Swatinem/rust-cache@v2
with:
cache-bin: false

- name: Check zenoh-java with rust 1.75.0
run: |
cd zenoh-jni
cargo +1.75.0 check --release --bins --lib

# NOTE: In GitHub repository settings, the "Require status checks to pass
# before merging" branch protection rule ensures that commits are only merged
# from branches where specific status checks have passed. These checks are
Expand All @@ -97,7 +78,7 @@ jobs:
ci:
name: CI status checks
runs-on: ubuntu-latest
needs: [check_rust, build, markdown_lint]
needs: [build, markdown_lint]
if: always()
steps:
- name: Check whether all jobs pass
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.85.0"
channel = "1.93.0"
Loading