-
Notifications
You must be signed in to change notification settings - Fork 684
102 lines (84 loc) · 3.14 KB
/
validate-samples.yml
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
name: Validate samples
on:
push:
branches:
- main
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
bwa90:
- '9.0/BlazorSample_BlazorWebApp/**'
bwa80:
- '8.0/BlazorSample_BlazorWebApp/**'
bs70:
- '7.0/BlazorSample_Server/**'
bs60:
- '6.0/BlazorSample_Server/**'
bs50:
- '5.0/BlazorSample_Server/**'
bs31:
- '3.1/BlazorSample_Server/**'
bw90:
- '9.0/BlazorSample_WebAssembly/**'
bw80:
- '8.0/BlazorSample_WebAssembly/**'
bw70:
- '7.0/BlazorSample_WebAssembly/**'
bw60:
- '6.0/BlazorSample_WebAssembly/**'
bw50:
- '5.0/BlazorSample_WebAssembly/**'
bw31:
- '3.1/BlazorSample_WebAssembly/**'
- name: Get latest .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0'
- name: Restore/build 9.0/BlazorSample_BlazorWebApp
if: steps.filter.outputs.bwa90 == 'true'
run: dotnet build 9.0/BlazorSample_BlazorWebApp
- name: Restore/build 8.0/BlazorSample_BlazorWebApp
if: steps.filter.outputs.bwa80 == 'true'
run: dotnet build 8.0/BlazorSample_BlazorWebApp
- name: Restore/build 7.0/BlazorSample_Server
if: steps.filter.outputs.bs70 == 'true'
run: dotnet build 7.0/BlazorSample_Server
- name: Restore/build 6.0/BlazorSample_Server
if: steps.filter.outputs.bs60 == 'true'
run: dotnet build 6.0/BlazorSample_Server
- name: Restore/build 5.0/BlazorSample_Server
if: steps.filter.outputs.bs50 == 'true'
run: dotnet build 5.0/BlazorSample_Server
- name: Restore/build 3.1/BlazorSample_Server
if: steps.filter.outputs.bs31 == 'true'
run: dotnet build 3.1/BlazorSample_Server
- name: Restore/build 9.0/BlazorSample_WebAssembly
if: steps.filter.outputs.bw90 == 'true'
run: dotnet build 9.0/BlazorSample_WebAssembly
- name: Restore/build 8.0/BlazorSample_WebAssembly
if: steps.filter.outputs.bw80 == 'true'
run: dotnet build 8.0/BlazorSample_WebAssembly
- name: Restore/build 7.0/BlazorSample_WebAssembly
if: steps.filter.outputs.bw70 == 'true'
run: dotnet build 7.0/BlazorSample_WebAssembly
- name: Restore/build 6.0/BlazorSample_WebAssembly
if: steps.filter.outputs.bw60 == 'true'
run: dotnet build 6.0/BlazorSample_WebAssembly
- name: Restore/build 5.0/BlazorSample_WebAssembly
if: steps.filter.outputs.bw50 == 'true'
run: dotnet build 5.0/BlazorSample_WebAssembly
- name: Restore/build 3.1/BlazorSample_WebAssembly
if: steps.filter.outputs.bw31 == 'true'
run: dotnet build 3.1/BlazorSample_WebAssembly