Skip to content

Commit e311b78

Browse files
committed
ci: fix build
1 parent 785f44f commit e311b78

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
if: matrix.os == 'windows-latest'
2727
run: dotnet workload install maui
2828

29-
# optional, ensures analyzer consistency
3029
- name: Enable strict analyzers
3130
run: |
3231
echo "DOTNET_CLI_TELEMETRY_OPTOUT=1" >> $GITHUB_ENV
@@ -37,7 +36,13 @@ jobs:
3736
run: dotnet restore
3837

3938
- name: Build
40-
run: dotnet build -c Release --no-restore --warnaserror
39+
run: |
40+
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
41+
dotnet build src/Trion.Web/Trion.Web.csproj -c Release --no-restore --warnaserror
42+
else
43+
dotnet build -c Release --no-restore --warnaserror
44+
fi
45+
shell: bash
4146

4247
- name: Test
4348
run: |
@@ -47,6 +52,7 @@ jobs:
4752
4853
- name: Publish MAUI desktop (Windows)
4954
if: matrix.os == 'windows-latest'
55+
shell: pwsh
5056
run: |
5157
dotnet publish src/Trion.Desktop/Trion.Desktop.csproj `
5258
-c Release `

0 commit comments

Comments
 (0)