Skip to content

Commit 7acf962

Browse files
Attempting to fix GitHub Action build process
1 parent 9820878 commit 7acf962

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/dotnet.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
env:
1313
USE_FULL_NUMERIC_PROVIDER: "true"
1414
MSBUILDDISABLENODEREUSE: "1"
15+
# Force single MSBuild worker to reduce crash risk
16+
DOTNET_CLI_TELEMETRY_OPTOUT: "1"
1517

1618
jobs:
1719
build:
@@ -26,21 +28,21 @@ jobs:
2628
global-json-file: global.json
2729

2830
- name: Restore dependencies
29-
run: dotnet restore
31+
run: |
32+
dotnet restore --configuration Release
3033
3134
- name: Build
3235
run: |
33-
dotnet build --no-restore \
34-
-maxcpucount:1 /nodeReuse:false \
35-
--configuration Release
36+
dotnet build --configuration Release --no-restore \
37+
-maxcpucount:1 /nodeReuse:false
3638
3739
- name: Test
3840
run: |
39-
dotnet test --no-build \
40-
--configuration Release \
41+
dotnet test --configuration Release --no-build \
4142
--verbosity minimal \
42-
--logger "trx;LogFileName=test_results.trx" \
43-
--results-directory ./TestResults
43+
--results-directory ./TestResults \
44+
--logger "trx;LogFileName=test_results.trx"
45+
4446
- name: Upload test results
4547
uses: actions/upload-artifact@v4
4648
if: always()

0 commit comments

Comments
 (0)