diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48cbd6400..c4adf8645 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,10 @@ jobs: name: Lint Rust runs-on: ubuntu-latest timeout-minutes: 60 + env: + # Force panic strategy to be same as lib and test targets, + # to avoid duplicate dependency checking. + CARGO_PROFILE_DEV_PANIC: unwind steps: - uses: actions/checkout@v7 with: @@ -48,8 +52,6 @@ jobs: run: cargo fmt --all -- --check - name: Run clippy run: scripts/clippy.sh - - name: Check with all features - run: cargo check --workspace --all-targets --all-features - name: Check with only default features run: cargo check --all-targets @@ -139,12 +141,12 @@ jobs: - name: Tests env: RUST_BACKTRACE: 1 - run: cargo nextest run --workspace --locked + run: cargo nextest run --workspace --exclude deltachat-jsonrpc-bindings --locked - name: Doc-Tests env: RUST_BACKTRACE: 1 - run: cargo test --workspace --locked --doc + run: cargo test --workspace --exclude deltachat-jsonrpc-bindings --locked --doc - name: Test cargo vendor run: cargo vendor diff --git a/scripts/clippy.sh b/scripts/clippy.sh index cb8db6ca3..44b60845c 100755 --- a/scripts/clippy.sh +++ b/scripts/clippy.sh @@ -6,4 +6,4 @@ # # To automatically fix warnings, run # scripts/clippy.sh --fix --allow-dirty -cargo clippy --locked --workspace --all-targets --all-features "$@" -- -D warnings +cargo clippy --locked --workspace --exclude deltachat-jsonrpc-bindings --all-targets --all-features "$@" -- -D warnings