Skip to content

Commit 19507b6

Browse files
committed
update Actions script
1 parent b4b9e3f commit 19507b6

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,27 @@ on:
1212
workflow_dispatch:
1313

1414
concurrency:
15-
group: ${{ github.workflow }}-${{ github.ref }}
15+
group: ${{ github.workflow }}
1616
cancel-in-progress: true
1717

1818
jobs:
19-
build:
20-
runs-on: windows-latest
19+
build:
20+
runs-on: windows-latest
2121

22-
steps:
23-
- name: Checkout code
24-
uses: actions/checkout@v6
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v6
2525

26-
- name: Setup .NET
27-
uses: actions/setup-dotnet@v5
28-
with:
29-
dotnet-version: '9.0.x'
26+
- name: Setup .NET
27+
uses: actions/setup-dotnet@v5
28+
with:
29+
dotnet-version: '9.0.x'
3030

31-
- name: Restore dependencies
32-
run: dotnet restore "Simple QR Code Maker.sln"
31+
- name: Add MSBuild to PATH
32+
uses: microsoft/setup-msbuild@v2
3333

34-
- name: Build solution
35-
run: dotnet build "Simple QR Code Maker.sln" --configuration Release --no-restore
34+
- name: Restore dependencies
35+
run: msbuild "Simple QR Code Maker.sln" /t:Restore /p:Configuration=Release
36+
37+
- name: Build solution
38+
run: msbuild "Simple QR Code Maker.sln" /p:Configuration=Release /p:Platform=x64

0 commit comments

Comments
 (0)