Skip to content

Commit 84d24ee

Browse files
committed
ci: install winget via Repair-WinGetPackageManager
1 parent ba6ed83 commit 84d24ee

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,17 @@ jobs:
7272
shell: pwsh
7373
run: Copy-Item -Recurse -Force _temp/windows-drivers-rs/.github/actions .github/
7474

75-
- name: Install Winget
76-
uses: ./.github/actions/install-winget
77-
with:
78-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79-
8075
- name: Install Winget PowerShell Module
8176
shell: pwsh
8277
run: Install-Module -Name Microsoft.WinGet.Client -Repository PSGallery -Force
8378

79+
- name: Install Winget
80+
if: matrix.runner.name == 'windows-11-arm'
81+
shell: pwsh
82+
run: |
83+
Repair-WinGetPackageManager -Latest -Force
84+
Write-Output "Winget Version: $(winget --version)"
85+
8486
- name: Install LLVM ${{ matrix.llvm }}
8587
uses: ./.github/actions/install-llvm
8688
with:

.github/workflows/docs.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,17 @@ jobs:
7070
shell: pwsh
7171
run: Copy-Item -Recurse -Force _temp/windows-drivers-rs/.github/actions .github/
7272

73-
- name: Install Winget
74-
uses: ./.github/actions/install-winget
75-
with:
76-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77-
7873
- name: Install Winget PowerShell Module
7974
shell: pwsh
8075
run: Install-Module -Name Microsoft.WinGet.Client -Repository PSGallery -Force
8176

77+
- name: Install Winget
78+
if: matrix.runner.name == 'windows-11-arm'
79+
shell: pwsh
80+
run: |
81+
Repair-WinGetPackageManager -Latest -Force
82+
Write-Output "Winget Version: $(winget --version)"
83+
8284
- name: Install LLVM ${{ matrix.llvm }}
8385
uses: ./.github/actions/install-llvm
8486
with:

.github/workflows/lint.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,17 @@ jobs:
6868
shell: pwsh
6969
run: Copy-Item -Recurse -Force _temp/windows-drivers-rs/.github/actions .github/
7070

71-
- name: Install Winget
72-
uses: ./.github/actions/install-winget
73-
with:
74-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75-
7671
- name: Install Winget PowerShell Module
7772
shell: pwsh
7873
run: Install-Module -Name Microsoft.WinGet.Client -Repository PSGallery -Force
7974

75+
- name: Install Winget
76+
if: matrix.runner.name == 'windows-11-arm'
77+
shell: pwsh
78+
run: |
79+
Repair-WinGetPackageManager -Latest -Force
80+
Write-Output "Winget Version: $(winget --version)"
81+
8082
- name: Install LLVM ${{ matrix.llvm }}
8183
uses: ./.github/actions/install-llvm
8284
with:
@@ -129,11 +131,6 @@ jobs:
129131
shell: pwsh
130132
run: Copy-Item -Recurse -Force _temp/windows-drivers-rs/.github/actions .github/
131133

132-
- name: Install Winget
133-
uses: ./.github/actions/install-winget
134-
with:
135-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136-
137134
- name: Install Winget PowerShell Module
138135
shell: pwsh
139136
run: Install-Module -Name Microsoft.WinGet.Client -Repository PSGallery -Force

0 commit comments

Comments
 (0)