Skip to content

Commit c77b6bc

Browse files
committed
fix: move to node24
1 parent 767f00a commit c77b6bc

6 files changed

Lines changed: 3783 additions & 3774 deletions

File tree

.github/workflows/test.yml

Lines changed: 46 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -4,66 +4,59 @@ on:
44
branches:
55
- dev
66
paths-ignore:
7-
- '*.md'
7+
- "*.md"
88
push:
99
branches:
1010
- dev
1111
paths-ignore:
12-
- '*.md'
12+
- "*.md"
1313
workflow_dispatch:
14-
branches:
15-
- dev
16-
- arm64
17-
- master
18-
paths-ignore:
19-
- '*.md'
20-
2114

2215
jobs:
2316
build:
2417
runs-on: windows-latest
2518
steps:
26-
- uses: actions/checkout@v4
27-
28-
- name: Setup MSBuild (vswhere-path)
29-
id: setup_msbuild_explicit
30-
uses: ./
31-
with:
32-
vswhere-path: C:\ProgramData\chocolatey\bin
33-
34-
- name: Setup MSBuild (PATH)
35-
id: setup_msbuild_path
36-
uses: ./
37-
38-
- name: Setup MSBuild (fallback)
39-
id: setup_msbuild_fallback
40-
uses: ./
41-
env:
42-
PATH: ''
43-
44-
- name: Setup MSBuild (x64)
45-
if: always()
46-
id: setup_msbuild_path_x64
47-
uses: ./
48-
with:
49-
vs-prerelease: true
50-
msbuild-architecture: 'x64'
51-
52-
- name: Setup MSBuild (arm64)
53-
if: always()
54-
id: setup_msbuild_path_arm
55-
uses: ./
56-
with:
57-
vs-prerelease: true
58-
msbuild-architecture: 'arm64'
59-
60-
- name: echo msbuild path
61-
run: |
62-
echo "vswhere-path: ${{ steps.setup_msbuild_explicit.outputs.msbuildPath }}"
63-
echo "PATH: ${{ steps.setup_msbuild_path.outputs.msbuildPath }}"
64-
echo "ARM PATH: ${{ steps.setup_msbuild_path_arm.outputs.msbuildPath }}"
65-
echo "ARM PATH: ${{ steps.setup_msbuild_path_x64.outputs.msbuildPath }}"
66-
echo "Fallback: ${{ steps.setup_msbuild_fallback.outputs.msbuildPath }}"
67-
68-
- name: echo MSBuild
69-
run: msbuild -version
19+
- uses: actions/checkout@v6
20+
21+
- name: Setup MSBuild (vswhere-path)
22+
id: setup_msbuild_explicit
23+
uses: ./
24+
with:
25+
vswhere-path: C:\ProgramData\chocolatey\bin
26+
27+
- name: Setup MSBuild (PATH)
28+
id: setup_msbuild_path
29+
uses: ./
30+
31+
- name: Setup MSBuild (fallback)
32+
id: setup_msbuild_fallback
33+
uses: ./
34+
env:
35+
PATH: ""
36+
37+
- name: Setup MSBuild (x64)
38+
if: always()
39+
id: setup_msbuild_path_x64
40+
uses: ./
41+
with:
42+
vs-prerelease: true
43+
msbuild-architecture: "x64"
44+
45+
- name: Setup MSBuild (arm64)
46+
if: always()
47+
id: setup_msbuild_path_arm
48+
uses: ./
49+
with:
50+
vs-prerelease: true
51+
msbuild-architecture: "arm64"
52+
53+
- name: echo msbuild path
54+
run: |
55+
echo "vswhere-path: ${{ steps.setup_msbuild_explicit.outputs.msbuildPath }}"
56+
echo "PATH: ${{ steps.setup_msbuild_path.outputs.msbuildPath }}"
57+
echo "ARM PATH: ${{ steps.setup_msbuild_path_arm.outputs.msbuildPath }}"
58+
echo "ARM PATH: ${{ steps.setup_msbuild_path_x64.outputs.msbuildPath }}"
59+
echo "Fallback: ${{ steps.setup_msbuild_fallback.outputs.msbuildPath }}"
60+
61+
- name: echo MSBuild
62+
run: msbuild -version

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This action will help discover where the `MSBuild` tool is and automatically add
99

1010
```yml
1111
- name: Add msbuild to PATH
12-
uses: microsoft/setup-msbuild@v2
12+
uses: microsoft/setup-msbuild@v3
1313

1414
- name: Build app for release
1515
run: msbuild src\YourProjectFile.csproj -t:rebuild -verbosity:diag -property:Configuration=Release
@@ -29,7 +29,7 @@ You may have a situation where your Actions runner has multiple versions of Visu
2929

3030
```yml
3131
- name: Add msbuild to PATH
32-
uses: microsoft/setup-msbuild@v2
32+
uses: microsoft/setup-msbuild@v3
3333
with:
3434
vs-version: '[16.4,16.5)'
3535
```
@@ -42,7 +42,7 @@ If you need your Actions runner to target a pre-release version of Visual Studio
4242

4343
```yml
4444
- name: Add msbuild to PATH
45-
uses: microsoft/setup-msbuild@v2
45+
uses: microsoft/setup-msbuild@v3
4646
with:
4747
vs-prerelease: true
4848
```
@@ -53,7 +53,7 @@ By default the action will use the x86 architecture for MSBuild, but it is possi
5353

5454
```yml
5555
- name: Add msbuild to PATH
56-
uses: microsoft/setup-msbuild@v2
56+
uses: microsoft/setup-msbuild@v3
5757
with:
5858
msbuild-architecture: x64
5959
```
@@ -64,7 +64,7 @@ This makes use of the vswhere tool which is a tool delivered by Microsoft to hel
6464

6565
```yml
6666
- name: Add msbuild to PATH
67-
uses: microsoft/setup-msbuild@v2
67+
uses: microsoft/setup-msbuild@v3
6868
with:
6969
vswhere-path: 'C:\path\to\your\tools\'
7070
```

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ outputs:
2323
description: "The resulting location of msbuild for your inputs"
2424

2525
runs:
26-
using: "node20"
26+
using: "node24"
2727
main: "dist/index.js"

0 commit comments

Comments
 (0)