Skip to content

Use timestamp_nanos_opt #85

Use timestamp_nanos_opt

Use timestamp_nanos_opt #85

Workflow file for this run

name: Test
on:
- push
- pull_request
concurrency:
group: compile-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
include:
- args: ""
- args: "--no-default-features --features=pcap"
- args: "--no-default-features --features=modbus"
runs-on: ubuntu-22.04
steps:
- name: Install pcap
run: sudo apt-get install libpcap-dev
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy,rustfmt
- name: Check rustfmt
uses: actions-rust-lang/rustfmt@v1
- name: Check clippy
run: cargo clippy
- name: Compile
run: cargo build ${{ matrix.args }}
- name: Test
run: cargo test