Skip to content

Commit

Permalink
Removed windows, made clippy prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
colin99d committed Nov 25, 2022
1 parent a00003d commit f654304
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
env:
CARGO_TERM_COLOR: always

# Linters inspired from here: https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
jobs:
fmt:
name: Rustfmt
Expand Down Expand Up @@ -62,25 +63,3 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

Windows:
name: Windows tests
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install npcap sdk
run: |
Invoke-WebRequest -Uri "https://npcap.com/dist/npcap-sdk-1.13.zip" -OutFile "C:/npcap-sdk.zip"
Expand-Archive -LiteralPath C:/npcap-sdk.zip -DestinationPath C:/npcap-sdk
echo "LIB=C:/npcap-sdk/Lib/x64" >> $env:GITHUB_ENV
- name: Install npcap dll
run: |
# $SecPassword = ConvertTo-SecureString "${{ secrets.NPCAP_OEM_PASSWORD }}" -AsPlainText -Force
# $CredObject = New-Object System.Management.Automation.PSCredential ("${{ secrets.NPCAP_OEM_USERNAME }}", $SecPassword)
Invoke-WebRequest -Uri "https://npcap.com/oem/dist/npcap-1.71-oem.exe" -OutFile C:/npcap-oem.exe # -Credential $CredObject
C:/npcap-oem.exe /S
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
1 change: 1 addition & 0 deletions src/enums/app_protocol.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::upper_case_acronyms)]
use std::fmt;

/// Enum representing the possible observed values of application layer protocol.
Expand Down
1 change: 1 addition & 0 deletions src/enums/trans_protocol.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::upper_case_acronyms)]
use std::fmt;

/// Enum representing the possible observed values of transport layer protocol.
Expand Down

0 comments on commit f654304

Please sign in to comment.