@@ -14,14 +14,14 @@ concurrency:
1414jobs :
1515 clippy :
1616 name : Clippy
17- runs-on : windows-latest
17+ runs-on : windows-2025
1818 permissions :
1919 checks : write
2020 strategy :
2121 fail-fast : false # Allow all matrix variants to complete even if some fail
2222 matrix :
2323 wdk :
24- - Microsoft.WindowsWDK. 10.0.22621 # NI WDK
24+ - 10.0.22621 # NI WDK
2525
2626 llvm :
2727 - 17.0.6
@@ -43,30 +43,39 @@ jobs:
4343 - name : Checkout Repository
4444 uses : actions/checkout@v4
4545
46+ - name : Checkout windows-drivers-rs actions
47+ uses : actions/checkout@v4
48+ with :
49+ repository : microsoft/windows-drivers-rs
50+ ref : main
51+ path : _temp/windows-drivers-rs
52+ sparse-checkout : |
53+ .github/actions
54+ sparse-checkout-cone-mode : false
55+
56+ - name : Copy actions to workspace
57+ shell : pwsh
58+ run : Copy-Item -Recurse -Force _temp/windows-drivers-rs/.github/actions .github/
59+
4660 - name : Install Winget
47- uses : ./.github/actions/winget- install
61+ uses : ./.github/actions/install-winget
4862 with :
4963 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5064
65+ - name : Install Winget PowerShell Module
66+ shell : pwsh
67+ run : Install-Module -Name Microsoft.WinGet.Client -Repository PSGallery -Force
68+
5169 - name : Install LLVM ${{ matrix.llvm }}
52- run : |
53- if ((Get-WinGetPackage -Id LLVM -Source winget -MatchOption Equals).InstalledVersion -eq '${{ matrix.llvm }}') {
54- Write-Host "LLVM ${{ matrix.llvm }} is already installed."
55- } else {
56- Write-Host "Installing LLVM ${{ matrix.llvm }}..."
57- Install-WinGetPackage -Id LLVM.LLVM -Version ${{ matrix.llvm }} -Source winget -MatchOption Equals -Mode Silent -Force
58- }
59- clang --version
70+ uses : ./.github/actions/install-llvm
71+ with :
72+ version : ${{ matrix.llvm }}
6073
6174 - name : Install WDK (${{ matrix.wdk }})
62- run : |
63- if ((Get-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals).Id -eq '${{ matrix.wdk }}') {
64- Write-Host "${{ matrix.wdk }} is already installed. Attempting to update..."
65- Update-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals -Mode Silent -Force
66- } else {
67- Write-Host "Installing ${{ matrix.wdk }}..."
68- Install-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals -Mode Silent -Force
69- }
75+ uses : ./.github/actions/install-wdk
76+ with :
77+ version : ${{ matrix.wdk }}
78+ source : winget
7079
7180 - name : Install Rust Toolchain (${{ matrix.rust_toolchain }})
7281 uses : dtolnay/rust-toolchain@master
@@ -84,30 +93,44 @@ jobs:
8493
8594 machete :
8695 name : Detect Unused Cargo Dependencies
87- runs-on : windows-latest
96+ runs-on : windows-2025
8897 strategy :
8998 matrix :
9099 wdk :
91- - Microsoft.WindowsWDK. 10.0.22621 # NI WDK
100+ - 10.0.22621 # NI WDK
92101
93102 steps :
94103 - name : Checkout Repository
95104 uses : actions/checkout@v4
96105
106+ - name : Checkout windows-drivers-rs actions
107+ uses : actions/checkout@v4
108+ with :
109+ repository : microsoft/windows-drivers-rs
110+ ref : main
111+ path : _temp/windows-drivers-rs
112+ sparse-checkout : |
113+ .github/actions
114+ sparse-checkout-cone-mode : false
115+
116+ - name : Copy actions to workspace
117+ shell : pwsh
118+ run : Copy-Item -Recurse -Force _temp/windows-drivers-rs/.github/actions .github/
119+
97120 - name : Install Winget
98- uses : ./.github/actions/winget- install
121+ uses : ./.github/actions/install-winget
99122 with :
100123 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
101124
125+ - name : Install Winget PowerShell Module
126+ shell : pwsh
127+ run : Install-Module -Name Microsoft.WinGet.Client -Repository PSGallery -Force
128+
102129 - name : Install WDK (${{ matrix.wdk }})
103- run : |
104- if ((Get-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals).Id -eq '${{ matrix.wdk }}') {
105- Write-Host "${{ matrix.wdk }} is already installed. Attempting to update..."
106- Update-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals -Mode Silent -Force
107- } else {
108- Write-Host "Installing ${{ matrix.wdk }}..."
109- Install-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals -Mode Silent -Force
110- }
130+ uses : ./.github/actions/install-wdk
131+ with :
132+ version : ${{ matrix.wdk }}
133+ source : winget
111134
112135 - name : Install Rust Toolchain
113136 uses : dtolnay/rust-toolchain@stable
0 commit comments