|
38 | 38 | working-directory: zenoh-jni |
39 | 39 | run: cargo fmt --all --check |
40 | 40 |
|
41 | | - - name: Clippy Check |
| 41 | + - name: Clippy Check without Cargo.lock |
42 | 42 | working-directory: zenoh-jni |
43 | | - run: cargo clippy --all-targets --all-features -- -D warnings |
| 43 | + run: | |
| 44 | + rm Cargo.lock |
| 45 | + cargo clippy --all-targets --all-features -- -D warnings |
| 46 | + git restore Cargo.lock |
44 | 47 |
|
45 | 48 | - name: Check for feature leaks |
46 | 49 | working-directory: zenoh-jni |
|
67 | 70 | config: '.markdownlint.yaml' |
68 | 71 | globs: '**/README.md' |
69 | 72 |
|
70 | | - check_rust: |
71 | | - name: Check zenoh-java using Rust 1.75 |
72 | | - runs-on: ubuntu-latest |
73 | | - strategy: |
74 | | - fail-fast: false |
75 | | - steps: |
76 | | - - name: Clone this repository |
77 | | - uses: actions/checkout@v4 |
78 | | - |
79 | | - - name: Update Rust 1.75.0 toolchain |
80 | | - run: rustup update 1.75.0 |
81 | | - |
82 | | - - name: Setup rust-cache |
83 | | - uses: Swatinem/rust-cache@v2 |
84 | | - with: |
85 | | - cache-bin: false |
86 | | - |
87 | | - - name: Check zenoh-java with rust 1.75.0 |
88 | | - run: | |
89 | | - cd zenoh-jni |
90 | | - cargo +1.75.0 check --release --bins --lib |
91 | | -
|
92 | 73 | # NOTE: In GitHub repository settings, the "Require status checks to pass |
93 | 74 | # before merging" branch protection rule ensures that commits are only merged |
94 | 75 | # from branches where specific status checks have passed. These checks are |
|
97 | 78 | ci: |
98 | 79 | name: CI status checks |
99 | 80 | runs-on: ubuntu-latest |
100 | | - needs: [check_rust, build, markdown_lint] |
| 81 | + needs: [build, markdown_lint] |
101 | 82 | if: always() |
102 | 83 | steps: |
103 | 84 | - name: Check whether all jobs pass |
|
0 commit comments