Version 3.1.0 #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows compilation and tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- name: Install TShark | |
shell: powershell | |
run: choco install -y wireshark | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --verbose | |
- name: Check where is thshark | |
run: dir "C:\Program Files\Wireshark" | |
- name: Run doc tests | |
run: cargo test --doc | |
# unit test currently fails with this error : `Err` value: Custom { kind: NotFound, error: "Unable to find tshark: program not found" } | |
#- name: Run unit tests | |
# run: | | |
# echo "C:\Program Files\Wireshark" >> $GITHUB_PATH | |
# cargo test --lib -- --test-threads=1 |