-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: configure WDK configuration via parsing Cargo manifest metadata (…
…#186) Signed-off-by: Melvin Wang <[email protected]> Co-authored-by: NateD-MSFT <[email protected]>
- Loading branch information
1 parent
4ee4b88
commit 32e5ae9
Showing
202 changed files
with
13,048 additions
and
234,616 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[build] | ||
rustflags = ["-C", "target-feature=+crt-static"] |
File renamed without changes.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,11 +19,17 @@ jobs: | |
- name: Dependency Review | ||
uses: actions/dependency-review-action@v4 | ||
with: | ||
# AND combinations are currently bugged and must be listed separately: https://github.com/actions/dependency-review-action/issues/263 | ||
# OR combinations are currently bugged and must be listed separately: https://github.com/actions/dependency-review-action/issues/670 | ||
allow-licenses: MIT, Apache-2.0, BSD-3-Clause, ISC, Unicode-DFS-2016, (MIT OR Apache-2.0) AND Unicode-DFS-2016, Unlicense OR MIT | ||
# anstyle is licensed as (MIT OR Apache-2.0), but the Github api fails to detect it: https://github.com/rust-cli/anstyle/tree/main/crates/anstyle | ||
allow-dependencies-licenses: 'pkg:cargo/[email protected]' | ||
allow-licenses: >- | ||
MIT, | ||
Apache-2.0, | ||
BSD-3-Clause, | ||
ISC, | ||
Unicode-DFS-2016 | ||
# [email protected] is licensed as (MIT OR Apache-2.0), but the Github api fails to detect it: https://github.com/rust-cli/anstyle/tree/main/crates/anstyle | ||
# AND combinations are currently bugged (https://github.com/actions/dependency-review-action/issues/263): | ||
# * [email protected] License: Apache-2.0 AND MIT | ||
# * [email protected] License: (MIT OR Apache-2.0) AND Unicode-DFS-2016 | ||
allow-dependencies-licenses: 'pkg:cargo/[email protected], pkg:cargo/[email protected], pkg:cargo/[email protected]' | ||
comment-summary-in-pr: on-failure | ||
# Explicit refs required for merge_group and push triggers: | ||
# https://github.com/actions/dependency-review-action/issues/456 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,44 +77,21 @@ jobs: | |
if: matrix.rust_toolchain == 'nightly' | ||
run: cargo +${{ matrix.rust_toolchain }} clippy --locked --profile ${{ matrix.cargo_profile }} --target ${{ matrix.target_triple }} --all-targets --features nightly -- -D warnings | ||
|
||
udeps: | ||
unused_deps: | ||
name: Detect Unused Cargo Dependencies | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
wdk: | ||
- Microsoft.WindowsWDK.10.0.22621 # NI WDK | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Winget | ||
uses: ./.github/actions/winget-install | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install WDK (${{ matrix.wdk }}) | ||
run: | | ||
if ((Get-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals).Id -eq '${{ matrix.wdk }}') { | ||
Write-Host "${{ matrix.wdk }} is already installed. Attempting to update..." | ||
Update-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals -Mode Silent -Force | ||
} else { | ||
Write-Host "Installing ${{ matrix.wdk }}..." | ||
Install-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals -Mode Silent -Force | ||
} | ||
- name: Install Rust Toolchain (Nightly) | ||
# Cargo udeps only supports running on nightly due to reliance on unstable dep-info feature: https://github.com/est31/cargo-udeps/issues/113, https://github.com/est31/cargo-udeps/issues/136 | ||
uses: dtolnay/rust-toolchain@nightly | ||
- name: Install Rust Toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Install Cargo Udeps | ||
- name: Install Cargo Machete | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
- name: Run Cargo Udeps | ||
run: cargo +nightly udeps --locked --all-targets | ||
tool: cargo-machete | ||
|
||
- name: Run Cargo Udeps (--features nightly) | ||
run: cargo +nightly udeps --locked --all-targets --features nightly | ||
- name: Run Cargo Machete | ||
run: cargo machete --skip-target-dir |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ jobs: | |
- name: Install Cargo Expand | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected].80 | ||
tool: [email protected].85 | ||
|
||
- name: Run Cargo Test | ||
run: cargo +${{ matrix.rust_toolchain }} test --locked --profile ${{ matrix.cargo_profile }} --target ${{ matrix.target_triple }} | ||
|
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
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
Oops, something went wrong.