github-ci: check formatting and clippy on example rust plugin

pull/15344/head
Jason Ish 3 months ago committed by Victor Julien
parent 5e2a33d080
commit aa4946547b

@ -92,6 +92,7 @@ jobs:
automake \ automake \
cargo-vendor \ cargo-vendor \
cbindgen \ cbindgen \
clippy \
diffutils \ diffutils \
numactl-devel \ numactl-devel \
dpdk-devel \ dpdk-devel \
@ -120,6 +121,7 @@ jobs:
python3-devel \ python3-devel \
python3-sphinx \ python3-sphinx \
python3-yaml \ python3-yaml \
rustfmt \
rust-toolset \ rust-toolset \
sudo \ sudo \
which \ which \
@ -212,9 +214,12 @@ jobs:
working-directory: examples/plugins/c-custom-loggers working-directory: examples/plugins/c-custom-loggers
run: make clean all run: make clean all
- name: Build Rust example plugin - name: Check and build Rust example plugin
working-directory: examples/plugins/rust working-directory: examples/plugins/rust
run: cargo build run: |
cargo fmt --check
cargo clippy -- -D warnings
cargo build
- name: Install Suricata and library - name: Install Suricata and library
run: make install install-headers install-library run: make install install-headers install-library

Loading…
Cancel
Save