Skip to content

Commit d383f16

Browse files
committed
Update CI workflow for Windows and improved build steps
Switches CI build environment to windows-2022, adds permissions, refines matrix strategy, and updates restore, clean, and build steps for Blazouter solution. Also improves warning suppression and configuration handling for more robust builds.
1 parent 63223f7 commit d383f16

1 file changed

Lines changed: 24 additions & 18 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,46 @@ name: CI Build
22

33
on:
44
push:
5-
branches: [ develop ]
5+
branches: [ "develop" ]
66
pull_request:
7-
branches: [ develop ]
8-
9-
env:
10-
DOTNET_VERSION: '10.0.x'
11-
DOTNET_QUALITY: 'preview'
7+
branches: [ "develop" ]
128

139
jobs:
1410
build:
15-
runs-on: ubuntu-latest
16-
11+
name: Build
12+
runs-on: windows-2022
13+
permissions:
14+
actions: read
15+
contents: read
16+
1717
strategy:
18+
fail-fast: false
1819
matrix:
19-
framework: [net10.0]
20+
configuration: [
21+
Release
22+
]
23+
solution: [
24+
Blazouter.sln
25+
]
2026

2127
steps:
22-
- name: Checkout code
28+
- name: Checkout repository
2329
uses: actions/checkout@v5
2430

2531
- name: Setup .NET
2632
uses: actions/setup-dotnet@v5
2733
with:
28-
dotnet-version: ${{ env.DOTNET_VERSION }}
29-
dotnet-quality: ${{ env.DOTNET_QUALITY }}
34+
dotnet-version: 10.0.x
35+
dotnet-quality: preview
3036

3137
- name: Restore .NET workloads
3238
run: dotnet workload restore
3339

34-
- name: Restore dependencies
35-
run: dotnet restore
40+
- name: Restore the Blazouter
41+
run: dotnet restore ${{ matrix.solution }} -p:Configuration=${{ matrix.configuration }} -p:UseSharedCompilation=false --configfile ./NuGet.Config
3642

37-
- name: Build
38-
run: dotnet build --configuration Release --no-restore --framework ${{ matrix.framework }}
43+
- name: Clean the Blazouter
44+
run: dotnet clean ${{ matrix.solution }}
3945

40-
- name: Build WebAssembly Sample
41-
run: dotnet build samples/Blazouter.WebAssembly.Sample/Blazouter.WebAssembly.Sample.csproj --configuration Release --no-restore
46+
- name: Build the Blazouter
47+
run: dotnet build ${{ matrix.solution }} -c ${{ matrix.configuration }} -p:UseSharedCompilation=false --no-restore /nowarn:CS0067,CS0108,CS0109,CS0114,CS0169,CS0414,CS0618,CS0649,CS8632,CA1416,NU5104,NETSDK1138,SYSLIB0003

0 commit comments

Comments
 (0)