-
Notifications
You must be signed in to change notification settings - Fork 47
66 lines (54 loc) · 1.82 KB
/
Copy pathbuild-samples.yml
File metadata and controls
66 lines (54 loc) · 1.82 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
name: Build Samples
on:
push:
branches: [ main ]
paths: [ 'samples/**', '.github/workflows/build-samples*.yml' ]
pull_request:
branches: [ main ]
paths: [ 'samples/**', '.github/workflows/build-samples*.yml' ]
workflow_dispatch:
permissions:
contents: read
jobs:
datasync-server:
uses: ./.github/workflows/build-samples-datasync-server.yml
datasync-server-cosmosdb:
uses: ./.github/workflows/build-samples-datasync-server-cosmosdb.yml
todoapp-mvc:
uses: ./.github/workflows/build-samples-todoapp-mvc.yml
todoapp-blazor-wasm:
uses: ./.github/workflows/build-samples-todoapp-blazor-wasm.yml
todoapp-tutorial:
uses: ./.github/workflows/build-samples-todoapp-tutorial.yml
todoapp-avalonia:
uses: ./.github/workflows/build-samples-todoapp-avalonia.yml
todoapp-windows:
uses: ./.github/workflows/build-samples-todoapp-windows.yml
todoapp-maui:
uses: ./.github/workflows/build-samples-todoapp-maui.yml
todoapp-uno:
uses: ./.github/workflows/build-samples-todoapp-uno.yml
# Single aggregation point so branch protection only needs to require one check,
# regardless of how many sample workflows are added over time.
all-samples-built:
name: All samples built
if: always()
needs:
- datasync-server
- datasync-server-cosmosdb
- todoapp-mvc
- todoapp-blazor-wasm
- todoapp-tutorial
- todoapp-avalonia
- todoapp-windows
- todoapp-maui
- todoapp-uno
runs-on: ubuntu-latest
steps:
- name: Check sample build results
run: |
if [ "${{ contains(needs.*.result, 'failure') }}" = "true" ] || [ "${{ contains(needs.*.result, 'cancelled') }}" = "true" ]; then
echo "One or more sample builds failed."
exit 1
fi
echo "All samples built successfully."