forked from bitfoundation/bitplatform
-
Notifications
You must be signed in to change notification settings - Fork 0
711 lines (547 loc) · 28.3 KB
/
Copy pathbit.full.ci.yml
File metadata and controls
711 lines (547 loc) · 28.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
name: bit platform full CI
on:
workflow_dispatch:
env:
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: true
ConnectionStrings__mssqldb: 'Data Source=localhost; Initial Catalog=BoilerplateTestDb;Application Name=Boilerplate;TrustServerCertificate=True;User Id=sa;Password=P@ssw0rdP@ssw0rd;'
permissions:
contents: read
jobs:
# Bit.BlazorUI solution is being built in bit.ci.yml
build-boilerplate:
name: Build Boilerplate itself
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup .NET 10
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
global-json-file: src/global.json
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- name: Install wasm and maui
run: cd src && dotnet workload install maui-android wasm-tools
- name: Install Android Sdk platform tools
run: ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platform-tools"
- name: Build Boilerplate solution in Release mode
run: dotnet build src/Templates/Boilerplate/Bit.Boilerplate/Boilerplate.slnx -c Release -p:EnforceCodeStyleInBuild=true
test-boilerplate-postgres:
name: Create project from template with PostgreSQL and test it
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup .NET 10
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
global-json-file: src/global.json
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- name: Uninstall Bit.Boilerplate if running on ACT
if: ${{ env.ACT }}
run: dotnet new uninstall Bit.Boilerplate
- name: Prepare Boilerplate template
run: |
cd src/Templates/Boilerplate && dotnet build -c Release
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
dotnet new install Bit.Boilerplate.0.0.0.nupkg && cd ../../../
- name: Install wasm
run: cd src && dotnet workload install wasm-tools
- name: Create project from template with PostgreSQL
run: dotnet new bit-bp --name TestPostgreSQL --database PostgreSQL --module Sales --signalR --aspire --redis --advancedTests
- name: Create appsettings.json for Client.Web
run: |
echo '{"ServerAddress":"/"}' > TestPostgreSQL/src/Client/TestPostgreSQL.Client.Web/wwwroot/appsettings.json
- name: Build and setup database
run: |
cd TestPostgreSQL/src/Server/TestPostgreSQL.Server.Api/
dotnet build -p:EnforceCodeStyleInBuild=true
dotnet tool restore
dotnet ef migrations add Initial --verbose
- name: Trust dotnet cert
continue-on-error: true
run: dotnet dev-certs https --trust # Necessary for aspire related resources
- name: Build tests and install Playwright
working-directory: TestPostgreSQL/src/Tests
run: |
dotnet build
pwsh bin/Debug/net10.0/playwright.ps1 install --with-deps
- name: Run tests (Blazor Server)
id: test-postgresql-blazorserver
working-directory: TestPostgreSQL/src/Tests
run: dotnet test --no-build
- name: Upload Blazor Server test results on failure
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ !cancelled() && steps.test-postgresql-blazorserver.outcome == 'failure' }}
with:
name: postgres-tests-blazorserver
path: ./TestPostgreSQL/src/Tests/TestResults
retention-days: 14
- name: Run UI tests (Blazor WebAssembly)
id: test-postgresql-blazorwasm
working-directory: TestPostgreSQL/src/Tests
run: WebAppRender__BlazorMode=BlazorWebAssembly dotnet test --filter "TestCategory=UITest" --no-build
- name: Upload Blazor WebAssembly test results on failure
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ !cancelled() && steps.test-postgresql-blazorwasm.outcome == 'failure' }}
with:
name: postgres-tests-blazorwasm
path: ./TestPostgreSQL/src/Tests/TestResults
retention-days: 14
- name: Run UI tests (Blazor WebAssembly, prerender, Firefox)
id: test-postgresql-blazorwasm-prerender
working-directory: TestPostgreSQL/src/Tests
run: WebAppRender__BlazorMode=BlazorWebAssembly WebAppRender__PrerenderEnabled=true ResponseCaching__EnableOutputCaching=true BROWSER=firefox dotnet test --filter "TestCategory=UITest" --no-build
- name: Upload Blazor WebAssembly prerender test results on failure
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ !cancelled() && steps.test-postgresql-blazorwasm-prerender.outcome == 'failure' }}
with:
name: postgres-tests-blazorwasm-prerender-firefox
path: ./TestPostgreSQL/src/Tests/TestResults
retention-days: 14
- name: Run UI tests (InvariantGlobalization)
id: test-postgresql-invariantglobalization
working-directory: TestPostgreSQL/src/Tests
run: WebAppRender__BlazorMode=BlazorWebAssembly WebAppRender__PrerenderEnabled=true ResponseCaching__EnableOutputCaching=true dotnet test -p:InvariantGlobalization=true --filter "TestCategory=UITest&TestCategory!=Localization"
- name: Upload InvariantGlobalization test results on failure
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ !cancelled() && steps.test-postgresql-invariantglobalization.outcome == 'failure' }}
with:
name: postgres-tests-invariantglobalization
path: ./TestPostgreSQL/src/Tests/TestResults
retention-days: 14
test-boilerplate-mssql:
name: Create project from template with SQL Server and test it
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup .NET 10
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
global-json-file: src/global.json
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- name: Uninstall Bit.Boilerplate if running on ACT
if: ${{ env.ACT }}
run: dotnet new uninstall Bit.Boilerplate
- name: Prepare Boilerplate template
run: |
cd src/Templates/Boilerplate && dotnet build -c Release
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
dotnet new install Bit.Boilerplate.0.0.0.nupkg && cd ../../../
- name: Install wasm
run: cd src && dotnet workload install wasm-tools
- name: Create project from template with SQL Server
run: dotnet new bit-bp --name TestSqlServer --database SqlServer --module Admin --signalR --aspire false --advancedTests
- name: Create appsettings.json for Client.Web
run: |
echo '{"ServerAddress":"/"}' > TestSqlServer/src/Client/TestSqlServer.Client.Web/wwwroot/appsettings.json
- name: Build and setup database
run: |
cd TestSqlServer/src/Server/TestSqlServer.Server.Api/
dotnet build -p:EnforceCodeStyleInBuild=true
dotnet tool restore
dotnet ef migrations add Initial --verbose
- name: Install sql server
uses: potatoqualitee/mssqlsuite@2291d923e83859edd871679c05b379037376761f # v1.12
with:
version: 2025
install: sqlengine
sa-password: P@ssw0rdP@ssw0rd
show-log: true
- name: Build tests and install Playwright
working-directory: TestSqlServer/src/Tests
run: |
dotnet build
pwsh bin/Debug/net10.0/playwright.ps1 install --with-deps
- name: Run tests (Blazor Server)
id: test-mssql-blazorserver
working-directory: TestSqlServer/src/Tests
run: dotnet test --no-build
- name: Upload Blazor Server test results on failure
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ !cancelled() && steps.test-mssql-blazorserver.outcome == 'failure' }}
with:
name: sqlserver-tests-blazorserver
path: ./TestSqlServer/src/Tests/TestResults
retention-days: 14
- name: Run UI tests (Blazor WebAssembly)
id: test-mssql-blazorwasm
working-directory: TestSqlServer/src/Tests
run: WebAppRender__BlazorMode=BlazorWebAssembly dotnet test --filter "TestCategory=UITest" --no-build
- name: Upload Blazor WebAssembly test results on failure
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ !cancelled() && steps.test-mssql-blazorwasm.outcome == 'failure' }}
with:
name: sqlserver-tests-blazorwasm
path: ./TestSqlServer/src/Tests/TestResults
retention-days: 14
- name: Run UI tests (Blazor WebAssembly, prerender, Firefox)
id: test-mssql-blazorwasm-prerender
working-directory: TestSqlServer/src/Tests
run: WebAppRender__BlazorMode=BlazorWebAssembly WebAppRender__PrerenderEnabled=true ResponseCaching__EnableOutputCaching=true BROWSER=firefox dotnet test --filter "TestCategory=UITest" --no-build
- name: Upload Blazor WebAssembly prerender test results on failure
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ !cancelled() && steps.test-mssql-blazorwasm-prerender.outcome == 'failure' }}
with:
name: sqlserver-tests-blazorwasm-prerender-firefox
path: ./TestSqlServer/src/Tests/TestResults
retention-days: 14
- name: Run UI tests (InvariantGlobalization)
id: test-mssql-invariantglobalization
working-directory: TestSqlServer/src/Tests
run: WebAppRender__BlazorMode=BlazorWebAssembly WebAppRender__PrerenderEnabled=true ResponseCaching__EnableOutputCaching=true dotnet test -p:InvariantGlobalization=true --filter "TestCategory=UITest&TestCategory!=Localization"
- name: Upload InvariantGlobalization test results on failure
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ !cancelled() && steps.test-mssql-invariantglobalization.outcome == 'failure' }}
with:
name: sqlserver-tests-invariantglobalization
path: ./TestSqlServer/src/Tests/TestResults
retention-days: 14
build-boilerplate-configurations:
name: Create several projects from template and build them
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup .NET 10
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
global-json-file: src/global.json
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- name: Uninstall Bit.Boilerplate if running on ACT
if: ${{ env.ACT }}
run: dotnet new uninstall Bit.Boilerplate
- name: Prepare Boilerplate template
run: |
cd src/Templates/Boilerplate && dotnet build -c Release
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
dotnet new install Bit.Boilerplate.0.0.0.nupkg && cd ../../../
- name: Install wasm
run: cd src && dotnet workload install wasm-tools
- name: Install wasm and maui
run: cd src && dotnet workload install maui-android wasm-tools
- name: Install Android Sdk platform tools
run: ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platform-tools"
- name: Build backend setup options
run: |
dotnet new bit-bp --name TestStandalone --api Standalone
cd TestStandalone/src/Server/TestStandalone.Server.Api/
dotnet build -p:EnforceCodeStyleInBuild=true
cd ../
cd TestStandalone.Server.Web/
dotnet build
cd ../../../../
rm -r "TestStandalone"
dotnet new bit-bp --name TestIntegrated --api Integrated
cd TestIntegrated/src/Server/TestIntegrated.Server.Web/
dotnet build -p:EnforceCodeStyleInBuild=true
cd ../../../../
rm -r "TestIntegrated"
- name: Build sample configuration 1
run: |
dotnet new bit-bp --name TestProject --database SqlServer --filesStorage AzureBlobStorage --api Integrated --captcha reCaptcha --pipeline Azure --module Admin --offlineDb --appInsights --sentry --signalR --notification --cloudflare --ads --aspire --redis --multitenant --brouter
dotnet build TestProject/TestProject.sln -p:InvariantGlobalization=false -p:Environment=Staging -p:EnforceCodeStyleInBuild=true
rm -r "TestProject"
- name: Build sample configuration 2
run: |
dotnet new bit-bp --name TestProject2 --database Other --filesStorage S3 --api Standalone --captcha None --pipeline None --module None --offlineDb false --appInsights false --sentry false --signalR false --notification false --cloudflare false --ads false --aspire true --redis false --multitenant false --brouter false
dotnet build TestProject2/TestProject2.slnx -p:InvariantGlobalization=true -p:Environment=Development -p:EnforceCodeStyleInBuild=true
rm -r "TestProject2"
build-blazorempty-configurations:
name: Build BlazorEmpty based projects
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup .NET 10
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
global-json-file: src/global.json
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- name: Install wasm
run: cd src && dotnet workload install wasm-tools
- name: Prepare BlazorEmpty template
run: |
cd src/Templates/BlazorEmpty && dotnet build -c Release
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
dotnet new install Bit.BlazorEmpty.0.0.0.nupkg && cd ../../../
- name: Create projects from BlazorEmpty template
run: |
dotnet new bit-empty --name AutoGlobal --interactivity Auto --all-interactive
dotnet new bit-empty --name SsrPerPage --interactivity None
- name: Build blazor empty based projects
run: |
dotnet build AutoGlobal/AutoGlobal.sln
dotnet build SsrPerPage/SsrPerPage.csproj
build-nuget-packages:
name: Build NuGet packages locally
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
global-json-file: src/global.json
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- name: Generate ES2019 based blazor.*.js files for .NET 9
run: |
git clone https://github.com/dotnet/aspnetcore.git
cd aspnetcore
git switch release/9.0
git submodule update --init --recursive
sed -i 's/"target": "ES2022"/"target": "ES2019"/' src/Components/Shared.JS/tsconfig.json
npm install
npm run-script build
cd src/Components/Web.JS
npm install
npm run-script build:production
cd ../../../../
mkdir -p src/BlazorES2019/wwwroot.net9/
cp aspnetcore/src/Components/Web.JS/dist/Release/blazor.*.js src/BlazorES2019/wwwroot.net9/
rm -rf aspnetcore
- name: Generate ES2019 based blazor.*.js files for .NET 10
run: |
git clone https://github.com/dotnet/aspnetcore.git
cd aspnetcore
git switch release/10.0
git submodule update --init --recursive
sed -i 's/"target": "ES2024"/"target": "ES2019"/' src/Components/Shared.JS/tsconfig.json
npm install
npm run-script build
cd src/Components/Web.JS
npm install
npm run-script build:production
cd ../../../../
mkdir -p src/BlazorES2019/wwwroot.net10/
cp aspnetcore/src/Components/Web.JS/dist/Release/blazor.*.js src/BlazorES2019/wwwroot.net10/
rm -rf aspnetcore
- name: Build and pack BlazorES2019
run: |
dotnet build src/BlazorES2019/Bit.BlazorES2019/Bit.BlazorES2019.csproj -c Release -p:GeneratePackageOnBuild=false -p:WarningLevel=0 -p:RunCodeAnalysis=false
dotnet pack src/BlazorES2019/Bit.BlazorES2019/Bit.BlazorES2019.csproj --output ./packages --configuration Release
- name: Generate CSS/JS files BlazorUI
run: dotnet build src/BlazorUI/Bit.BlazorUI/Bit.BlazorUI.csproj -t:BeforeBuildTasks --no-restore -f:net10.0 -c Release
- name: Build and pack BlazorUI
run: |
dotnet build src/BlazorUI/Bit.BlazorUI/Bit.BlazorUI.csproj -c Release -p:GeneratePackageOnBuild=false -p:WarningLevel=0 -p:RunCodeAnalysis=false
dotnet pack src/BlazorUI/Bit.BlazorUI/Bit.BlazorUI.csproj --output ./packages --configuration Release
- name: Generate CSS/JS files BlazorUI.Extras
run: dotnet build src/BlazorUI/Bit.BlazorUI.Extras/Bit.BlazorUI.Extras.csproj -t:BeforeBuildTasks --no-restore -f:net10.0 -c Release
- name: Build and pack BlazorUI.Extras
run: |
dotnet build src/BlazorUI/Bit.BlazorUI.Extras/Bit.BlazorUI.Extras.csproj -c Release -p:GeneratePackageOnBuild=false -p:WarningLevel=0 -p:RunCodeAnalysis=false
dotnet pack src/BlazorUI/Bit.BlazorUI.Extras/Bit.BlazorUI.Extras.csproj --output ./packages --configuration Release
- name: Generate CSS/JS files BlazorUI.Legacy
run: dotnet build src/BlazorUI/Bit.BlazorUI.Legacy/Bit.BlazorUI.Legacy.csproj -t:BeforeBuildTasks --no-restore -f:net10.0 -c Release
- name: Build and pack BlazorUI.Legacy
run: |
dotnet build src/BlazorUI/Bit.BlazorUI.Legacy/Bit.BlazorUI.Legacy.csproj -c Release -p:GeneratePackageOnBuild=false -p:WarningLevel=0 -p:RunCodeAnalysis=false
dotnet pack src/BlazorUI/Bit.BlazorUI.Legacy/Bit.BlazorUI.Legacy.csproj --output ./packages --configuration Release
- name: Generate CSS/JS files BlazorUI.Assets
run: dotnet build src/BlazorUI/Bit.BlazorUI.Assets/Bit.BlazorUI.Assets.csproj -t:BeforeBuildTasks --no-restore -f:net10.0 -c Release
- name: Build and pack BlazorUI.Assets
run: |
dotnet build src/BlazorUI/Bit.BlazorUI.Assets/Bit.BlazorUI.Assets.csproj -c Release -p:GeneratePackageOnBuild=false -p:WarningLevel=0 -p:RunCodeAnalysis=false
dotnet pack src/BlazorUI/Bit.BlazorUI.Assets/Bit.BlazorUI.Assets.csproj --output ./packages --configuration Release
- name: Generate CSS/JS files BlazorUI.Icons
run: dotnet build src/BlazorUI/Bit.BlazorUI.Icons/Bit.BlazorUI.Icons.csproj -t:BeforeBuildTasks --no-restore -f:net10.0 -c Release
- name: Build and pack BlazorUI.Icons
run: |
dotnet build src/BlazorUI/Bit.BlazorUI.Icons/Bit.BlazorUI.Icons.csproj -c Release -p:GeneratePackageOnBuild=false -p:WarningLevel=0 -p:RunCodeAnalysis=false
dotnet pack src/BlazorUI/Bit.BlazorUI.Icons/Bit.BlazorUI.Icons.csproj --output ./packages --configuration Release
- name: Generate CSS/JS files Bswup
run: dotnet build src/Bswup/Bit.Bswup/Bit.Bswup.csproj -t:BeforeBuildTasks --no-restore -f:net10.0 -c Release
- name: Build and pack Bswup
run: |
dotnet build src/Bswup/Bit.Bswup/Bit.Bswup.csproj -c Release -p:GeneratePackageOnBuild=false -p:WarningLevel=0 -p:RunCodeAnalysis=false
dotnet pack src/Bswup/Bit.Bswup/Bit.Bswup.csproj --output ./packages --configuration Release
- name: Build and pack Butil
run: |
dotnet build src/Butil/Bit.Butil/Bit.Butil.csproj -c Release -p:GeneratePackageOnBuild=false -p:WarningLevel=0 -p:RunCodeAnalysis=false
dotnet pack src/Butil/Bit.Butil/Bit.Butil.csproj --output ./packages --configuration Release
- name: Build and pack Brouter
run: |
dotnet build src/Brouter/Bit.Brouter/Bit.Brouter.csproj -c Release -p:GeneratePackageOnBuild=false -p:WarningLevel=0 -p:RunCodeAnalysis=false
dotnet pack src/Brouter/Bit.Brouter/Bit.Brouter.csproj --output ./packages --configuration Release
- name: Build and pack Brouter.Generators
run: |
dotnet build src/Brouter/Bit.Brouter.Generators/Bit.Brouter.Generators.csproj -c Release -p:GeneratePackageOnBuild=false -p:WarningLevel=0 -p:RunCodeAnalysis=false
dotnet pack src/Brouter/Bit.Brouter.Generators/Bit.Brouter.Generators.csproj --output ./packages --configuration Release
- name: Build and pack Besql
run: |
dotnet build src/Besql/Bit.Besql/Bit.Besql.csproj -c Release -p:GeneratePackageOnBuild=false -p:WarningLevel=0 -p:RunCodeAnalysis=false
dotnet pack src/Besql/Bit.Besql/Bit.Besql.csproj --output ./packages --configuration Release
- name: Build and pack Bmotion
run: |
dotnet build src/Bmotion/Bit.Bmotion/Bit.Bmotion.csproj -c Release -p:GeneratePackageOnBuild=false -p:WarningLevel=0 -p:RunCodeAnalysis=false
dotnet pack src/Bmotion/Bit.Bmotion/Bit.Bmotion.csproj --output ./packages --configuration Release
- name: Build and pack CodeAnalyzers
run: |
dotnet build src/CodeAnalyzers/Bit.CodeAnalyzers/Bit.CodeAnalyzers.csproj -c Release -p:GeneratePackageOnBuild=false -p:WarningLevel=0 -p:RunCodeAnalysis=false
dotnet pack src/CodeAnalyzers/Bit.CodeAnalyzers/Bit.CodeAnalyzers.csproj --output ./packages --configuration Release
- name: Build and pack ResxTranslator
run: |
dotnet build src/ResxTranslator/Bit.ResxTranslator/Bit.ResxTranslator.csproj -c Release -p:GeneratePackageOnBuild=false -p:WarningLevel=0 -p:RunCodeAnalysis=false
dotnet pack src/ResxTranslator/Bit.ResxTranslator/Bit.ResxTranslator.csproj --output ./packages --configuration Release
- name: Build SourceGenerators
run: dotnet build src/SourceGenerators/Bit.SourceGenerators/Bit.SourceGenerators.csproj --configuration Release
- name: Pack Boilerplate template
run: dotnet pack src/Templates/Boilerplate/Bit.Boilerplate.ProjectTemplate.csproj --output ./packages --configuration Release
- name: Pack BlazorEmpty template
run: dotnet pack src/Templates/BlazorEmpty/Bit.BlazorEmpty.ProjectTemplate.csproj --output ./packages --configuration Release
- name: Upload NuGet packages artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: nuget-packages
path: ./packages/*.nupkg
retention-days: 30
build-bswup-solution:
name: Build Bswup solution
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup .NET 10
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
global-json-file: src/global.json
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- name: Install wasm and maui
run: cd src && dotnet workload install maui-android wasm-tools
- name: Install Android Sdk platform tools
run: ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platform-tools"
- name: Build Bswup solution in Release mode
run: dotnet build src/Bswup/Bit.Bswup.slnx -c Release
build-butil-solution:
name: Build Butil solution
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup .NET 10
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
global-json-file: src/global.json
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- name: Install wasm and maui
run: cd src && dotnet workload install maui-android wasm-tools
- name: Install Android Sdk platform tools
run: ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platform-tools"
- name: Build Butil solution in Release mode
run: dotnet build src/Butil/Bit.Butil.slnx -c Release
build-brouter-solution:
name: Build Brouter solution
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup .NET 10
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
global-json-file: src/global.json
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- name: Install wasm and maui
run: cd src && dotnet workload install maui-android wasm-tools
- name: Install Android Sdk platform tools
run: ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platform-tools"
- name: Build Brouter solution in Release mode
run: dotnet build src/Brouter/Bit.Brouter.slnx -c Release
build-bmotion-solution:
name: Build Bmotion solution
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup .NET 10
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
global-json-file: src/global.json
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- name: Install wasm and maui
run: cd src && dotnet workload install maui-android wasm-tools
- name: Install Android Sdk platform tools
run: ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platform-tools"
- name: Build Bmotion solution in Release mode
run: dotnet build src/Bmotion/Bit.Bmotion.slnx -c Release
build-tooling-solutions:
name: Build tooling solutions
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup .NET 10
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
global-json-file: src/global.json
- name: Build CodeAnalyzers solution in Release mode
run: dotnet build src/CodeAnalyzers/Bit.CodeAnalyzers.slnx -c Release
- name: Build ResxTranslator solution in Release mode
run: dotnet build src/ResxTranslator/Bit.ResxTranslator.slnx -c Release
- name: Build SourceGenerators solution in Release mode
run: dotnet build src/SourceGenerators/Bit.SourceGenerators.slnx -c Release
build-websites:
name: Build website solutions
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup .NET 10
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
global-json-file: src/global.json
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- name: Install wasm
run: cd src && dotnet workload install wasm-tools
- name: Build Careers website in Release mode
run: dotnet build src/Websites/Careers/Bit.Websites.Careers.slnx -c Release
- name: Build Platform website in Release mode
run: dotnet build src/Websites/Platform/Bit.Websites.Platform.slnx -c Release
- name: Build Sales website in Release mode
run: dotnet build src/Websites/Sales/Bit.Websites.Sales.slnx -c Release