@@ -10,13 +10,13 @@ name: Lint
1010jobs :
1111 clippy :
1212 name : Clippy
13- runs-on : windows-latest
13+ runs-on : windows-2025
1414 permissions :
1515 checks : write
1616 strategy :
1717 matrix :
1818 wdk :
19- - Microsoft.WindowsWDK. 10.0.22621 # NI WDK
19+ - 10.0.22621 # NI WDK
2020
2121 llvm :
2222 - 17.0.6
@@ -38,30 +38,39 @@ jobs:
3838 - name : Checkout Repository
3939 uses : actions/checkout@v4
4040
41+ - name : Checkout windows-drivers-rs actions
42+ uses : actions/checkout@v4
43+ with :
44+ repository : microsoft/windows-drivers-rs
45+ ref : main
46+ path : _temp/windows-drivers-rs
47+ sparse-checkout : |
48+ .github/actions
49+ sparse-checkout-cone-mode : false
50+
51+ - name : Copy actions to workspace
52+ shell : pwsh
53+ run : Copy-Item -Recurse -Force _temp/windows-drivers-rs/.github/actions .github/
54+
4155 - name : Install Winget
42- uses : ./.github/actions/winget- install
56+ uses : ./.github/actions/install-winget
4357 with :
4458 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4559
60+ - name : Install Winget PowerShell Module
61+ shell : pwsh
62+ run : Install-Module -Name Microsoft.WinGet.Client -Repository PSGallery -Force
63+
4664 - name : Install LLVM ${{ matrix.llvm }}
47- run : |
48- if ((Get-WinGetPackage -Id LLVM -Source winget -MatchOption Equals).InstalledVersion -eq '${{ matrix.llvm }}') {
49- Write-Host "LLVM ${{ matrix.llvm }} is already installed."
50- } else {
51- Write-Host "Installing LLVM ${{ matrix.llvm }}..."
52- Install-WinGetPackage -Id LLVM.LLVM -Version ${{ matrix.llvm }} -Source winget -MatchOption Equals -Mode Silent -Force
53- }
54- clang --version
65+ uses : ./.github/actions/install-llvm
66+ with :
67+ version : ${{ matrix.llvm }}
5568
5669 - name : Install WDK (${{ matrix.wdk }})
57- run : |
58- if ((Get-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals).Id -eq '${{ matrix.wdk }}') {
59- Write-Host "${{ matrix.wdk }} is already installed. Attempting to update..."
60- Update-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals -Mode Silent -Force
61- } else {
62- Write-Host "Installing ${{ matrix.wdk }}..."
63- Install-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals -Mode Silent -Force
64- }
70+ uses : ./.github/actions/install-wdk
71+ with :
72+ version : ${{ matrix.wdk }}
73+ source : winget
6574
6675 - name : Install Rust Toolchain (${{ matrix.rust_toolchain }})
6776 uses : dtolnay/rust-toolchain@master
@@ -79,30 +88,44 @@ jobs:
7988
8089 machete :
8190 name : Detect Unused Cargo Dependencies
82- runs-on : windows-latest
91+ runs-on : windows-2025
8392 strategy :
8493 matrix :
8594 wdk :
86- - Microsoft.WindowsWDK. 10.0.22621 # NI WDK
95+ - 10.0.22621 # NI WDK
8796
8897 steps :
8998 - name : Checkout Repository
9099 uses : actions/checkout@v4
91100
101+ - name : Checkout windows-drivers-rs actions
102+ uses : actions/checkout@v4
103+ with :
104+ repository : microsoft/windows-drivers-rs
105+ ref : main
106+ path : _temp/windows-drivers-rs
107+ sparse-checkout : |
108+ .github/actions
109+ sparse-checkout-cone-mode : false
110+
111+ - name : Copy actions to workspace
112+ shell : pwsh
113+ run : Copy-Item -Recurse -Force _temp/windows-drivers-rs/.github/actions .github/
114+
92115 - name : Install Winget
93- uses : ./.github/actions/winget- install
116+ uses : ./.github/actions/install-winget
94117 with :
95118 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
96119
120+ - name : Install Winget PowerShell Module
121+ shell : pwsh
122+ run : Install-Module -Name Microsoft.WinGet.Client -Repository PSGallery -Force
123+
97124 - name : Install WDK (${{ matrix.wdk }})
98- run : |
99- if ((Get-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals).Id -eq '${{ matrix.wdk }}') {
100- Write-Host "${{ matrix.wdk }} is already installed. Attempting to update..."
101- Update-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals -Mode Silent -Force
102- } else {
103- Write-Host "Installing ${{ matrix.wdk }}..."
104- Install-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals -Mode Silent -Force
105- }
125+ uses : ./.github/actions/install-wdk
126+ with :
127+ version : ${{ matrix.wdk }}
128+ source : winget
106129
107130 - name : Install Rust Toolchain
108131 uses : dtolnay/rust-toolchain@stable
0 commit comments