Skip to content

Commit

Permalink
fix: remove redundant feature gate
Browse files Browse the repository at this point in the history
test: add signing to internal-tests matrix
test: add signing as msrv matrix option
  • Loading branch information
pv42 committed Aug 25, 2024
1 parent 552560b commit 614cd28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ jobs:
strategy:
matrix:
dialect: ["ardupilotmega", "asluav", "matrixpilot", "minimal", "paparazzi", "python_array_test", "slugs", "standard", "test", "ualberta", "uavionix", "icarous", "common"]
signing: ["", "--features signing"]
steps:
- uses: actions/checkout@master
- uses: dtolnay/rust-toolchain@stable
- name: Run internal tests
run: cargo test --verbose --features ${{ matrix.dialect }} --features signing -- --nocapture
run: cargo test --verbose --features ${{ matrix.dialect }} ${{ matrix.signing }} -- --nocapture

mavlink-dump:
runs-on: ubuntu-latest
Expand All @@ -46,6 +47,9 @@ jobs:

msrv:
runs-on: ubuntu-latest
strategy:
matrix:
signing: ["", "--features signing"]
steps:
- uses: actions/checkout@master
- uses: dtolnay/rust-toolchain@master
Expand All @@ -59,7 +63,7 @@ jobs:
with:
use-cross: true
command: check
args: --all --all-targets --features signing
args: --all --all-targets ${{ matrix.signing }}

build:
needs: [formatting, linting, internal-tests, mavlink-dump, msrv]
Expand Down
3 changes: 0 additions & 3 deletions mavlink-core/src/connection/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,13 @@ impl<M: Message> MavConnection<M> for UdpConnection {
self.protocol_version,
header,
data,
#[cfg(feature = "signing")]
self.signing_data.as_ref(),
)?;
#[cfg(feature = "signing")]
write_versioned_msg_signed(
&mut buf,
self.protocol_version,
header,
data,
#[cfg(feature = "signing")]
self.signing_data.as_ref(),
)?;
state.socket.send_to(&buf, addr)?
Expand Down

0 comments on commit 614cd28

Please sign in to comment.