Skip to content

Commit ec1c412

Browse files
committed
Pin runner version to windows-2022
1 parent 08f4bdb commit ec1c412

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: windows-latest
11+
runs-on: windows-2022
1212
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
1313

1414
strategy:
@@ -25,10 +25,6 @@ jobs:
2525

2626
- uses: microsoft/setup-msbuild@v2
2727

28-
- run: |
29-
$vsInstallerPath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vs_community.exe"
30-
& $vsInstallerPath --quiet --wait --add Microsoft.VisualStudio.Component.Windows10SDK.19041
31-
3228
- run: echo ${{ secrets.ENV_FILE }} | base64 --decode > .env
3329
shell: bash
3430

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
release:
13-
runs-on: windows-latest
13+
runs-on: windows-2022
1414

1515
steps:
1616
- uses: actions/checkout@v5
@@ -21,10 +21,6 @@ jobs:
2121

2222
- uses: microsoft/setup-msbuild@v2
2323

24-
- run: |
25-
$vsInstallerPath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vs_community.exe"
26-
& $vsInstallerPath --quiet --wait --add Microsoft.VisualStudio.Component.Windows10SDK.19041
27-
2824
- run: echo ${{ secrets.ENV_FILE }} | base64 --decode > .env
2925
shell: bash
3026

0 commit comments

Comments
 (0)