-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathbuild-samples-todoapp-tutorial.yml
More file actions
62 lines (51 loc) · 1.93 KB
/
Copy pathbuild-samples-todoapp-tutorial.yml
File metadata and controls
62 lines (51 loc) · 1.93 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
name: Build Sample - TodoApp Tutorial
on:
workflow_call:
env:
DOTNET_VERSION: '10.0.x'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
# Debug (not Release): this is a build-only compile sanity check, never published/shipped.
# Release builds pointlessly enable IL trimming/AOT machinery on some sample heads (see
# https://github.com/CommunityToolkit/Datasync/issues/521), so all sample CI workflows build
# Debug to avoid that overhead consistently, even where it isn't currently an issue.
DOTNET_CONFIGURATION: 'Debug'
ServerProjectFile: 'samples/todoapp-tutorial/ServerApp/ServerApp.csproj'
# ClientApp is a WPF project targeting net10.0-windows, so it is built on a windows-latest
# runner in a separate job below. See https://github.com/CommunityToolkit/Datasync/issues/510.
ClientProjectFile: 'samples/todoapp-tutorial/ClientApp/ClientApp.csproj'
permissions:
contents: read
jobs:
build-serverapp:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v7
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore dependencies
run: dotnet restore ${{ env.ServerProjectFile }}
- name: Build sample
run: >
dotnet build ${{ env.ServerProjectFile }}
--configuration ${{ env.DOTNET_CONFIGURATION }}
--no-restore
build-clientapp:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v7
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore dependencies
run: dotnet restore ${{ env.ClientProjectFile }}
- name: Build sample
run: >
dotnet build ${{ env.ClientProjectFile }}
--configuration ${{ env.DOTNET_CONFIGURATION }}
--no-restore