Skip to content

Commit ed668aa

Browse files
committed
Update workflows
1 parent 80f4da1 commit ed668aa

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/dotnet.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,48 +38,44 @@ jobs:
3838
if: (github.event_name != 'workflow_dispatch' && true || inputs.run_build) == true
3939
steps:
4040
- name: Checkout
41-
uses: actions/checkout@main
41+
uses: actions/checkout@v5
4242
with:
4343
fetch-depth: 0
44-
- name: Setup MSBuild
45-
uses: microsoft/setup-msbuild@main
46-
with:
47-
msbuild-architecture: x64
4844
- name: Setup .NET 10
49-
uses: actions/setup-dotnet@main
45+
uses: actions/setup-dotnet@v5
5046
with:
5147
dotnet-version: 10.x
5248
dotnet-quality: 'preview'
5349
- name: Setup Windows 11 SDK (10.0.26100.0)
54-
uses: GuillaumeFalourd/setup-windows10-sdk-action@main
50+
uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
5551
with:
5652
sdk-version: 26100
5753
- name: Restore
5854
run: dotnet restore SUBSTitute.sln
5955
- name: Build
60-
run: dotnet build SUBSTitute.sln --configuration ${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }} --no-restore -p:VersionSuffix=ci
56+
run: dotnet build SUBSTitute.sln --configuration ${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }} --no-restore -p:VersionSuffix=ci -p:GenerateAppxPackageOnBuild=false
6157
sonarcloud:
6258
name: SonarCloud
6359
runs-on: windows-latest
6460
if: (github.repository == 'sungaila/SUBSTitute' && success()) && (github.event_name != 'workflow_dispatch' && true || inputs.run_sonarcloud) == true
6561
steps:
6662
- name: Checkout
67-
uses: actions/checkout@main
63+
uses: actions/checkout@v5
6864
with:
6965
fetch-depth: 0
7066
- name: Setup .NET 9
71-
uses: actions/setup-dotnet@main
67+
uses: actions/setup-dotnet@v5
7268
with:
7369
dotnet-version: 10.x
7470
dotnet-quality: 'preview'
7571
- name: Setup Windows 11 SDK (10.0.26100.0)
76-
uses: GuillaumeFalourd/setup-windows10-sdk-action@main
72+
uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
7773
with:
7874
sdk-version: 26100
7975
- name: Setup dotnet-coverage
8076
run: dotnet tool install --global dotnet-coverage
8177
- name: Setup JDK 17
82-
uses: actions/setup-java@main
78+
uses: actions/setup-java@v5
8379
with:
8480
java-version: 17
8581
java-package: jdk
@@ -111,5 +107,5 @@ jobs:
111107
run: |
112108
.\.sonar\scanner\dotnet-sonarscanner begin /k:"sungaila_SUBSTitute" /o:"sungaila" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
113109
dotnet restore SUBSTitute.sln
114-
dotnet build SUBSTitute.sln --configuration ${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }} --no-restore
110+
dotnet build SUBSTitute.sln --configuration ${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }} --no-restore -p:GenerateAppxPackageOnBuild=false
115111
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

0 commit comments

Comments
 (0)