Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try and figure out what's wrong with windows #339

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/00-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: 'Linux'
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# pull_request:
# branches: [ main ]
schedule:
- cron: "0 6 * * *"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/00-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: 'Mac OS'
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# pull_request:
# branches: [ main ]
schedule:
- cron: "0 6 * * *"

Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/00-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ jobs:
NPCAP_OEM_PASSWORD: ${{ secrets.NPCAP_OEM_PASSWORD }}
NPCAP_OEM_USERNAME: ${{ secrets.NPCAP_OEM_USERNAME }}

windows-build-and-test-nightly:
uses: './.github/workflows/01-build-and-test-windows.yml'
with:
os: 'windows-latest'
toolchain: 'nightly'
secrets:
NPCAP_OEM_PASSWORD: ${{ secrets.NPCAP_OEM_PASSWORD }}
NPCAP_OEM_USERNAME: ${{ secrets.NPCAP_OEM_USERNAME }}

windows-coverage-stable:
uses: './.github/workflows/02-coverage.yml'
with:
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/01-build-and-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ jobs:
echo "LIB=C:/npcap-sdk/Lib/x64" >> $env:GITHUB_ENV
# Secrets are not passed to workflows that are triggered by a pull request from a fork.
# https://docs.github.com/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets
- if: github.event_name != 'pull_request'
run: |
- 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
Expand All @@ -48,14 +47,14 @@ jobs:
# secrets are not passed to workflows triggered by a pull request from a fork, it will still
# not be possible to run integration tests on pull requests.
- run: cargo build --all-targets
- run: cargo test --lib
- run: cargo test --all-targets
- run: cargo build --all-targets --release
- run: cargo test --lib --release
- run: cargo test --all-targets --release
- if: ${{ ! inputs.msrv }}
run: cargo build --all-targets --all-features
- if: ${{ ! inputs.msrv}}
run: cargo test --lib --all-features
run: cargo test --all-targets --all-features
- if: ${{ ! inputs.msrv }}
run: cargo build --all-targets --release --all-features
- if: ${{ ! inputs.msrv}}
run: cargo test --lib --release --all-features
run: cargo test --all-targets --release --all-features
Loading