-
Notifications
You must be signed in to change notification settings - Fork 2k
48 lines (40 loc) · 1.05 KB
/
build-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
name: Build Samples
on:
push:
branches: [main]
paths:
- "samples/core/**"
- "samples/end2end/**"
- ".github/workflows/build-samples.yml"
pull_request:
branches: [main]
paths:
- "samples/core/**"
- "samples/end2end/**"
- ".github/workflows/build-samples.yml"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET Core 3.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Setup .NET 6.0 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
- name: Setup .NET 8.0 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
include-prerelease: true
- name: Build samples
working-directory: samples/core
run: dotnet build
- name: Build planetary docs sample
working-directory: samples/end2end/PlanetaryDocs
run: dotnet build