-
-
Notifications
You must be signed in to change notification settings - Fork 453
51 lines (46 loc) · 1.39 KB
/
demo.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
name: Demo Project
on:
push:
branches:
- master
- release-*
pull_request:
paths:
- "**.cs"
- "**.csproj"
- "**/demo.yml"
jobs:
build:
name: Demo Project
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022, macos-latest]
env:
DOTNET_VERSION: '8.0.x' # The .NET SDK version to use
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Install dependencies
working-directory: ./demos/PuppeteerSharpPdfDemo
run: |
dotnet restore PuppeteerSharpPdfDemo-Local.csproj
- name: Run on .NET
working-directory: ./demos/PuppeteerSharpPdfDemo
run: |
dotnet run --project PuppeteerSharpPdfDemo-Local.csproj auto-exit -f net8.0
- name: Run with AOT
if: matrix.os == 'windows-2022'
working-directory: ./demos/PuppeteerSharpPdfDemo
run: |
dotnet publish PuppeteerSharpPdfDemo-Local.csproj -r win-x64 -o build -f net8.0
build/PuppeteerSharpPdfDemo-Local.exe auto-exit
- name: Run on .NET Framework
if: matrix.os == 'windows-2022'
working-directory: ./demos/PuppeteerSharpPdfDemo
run: |
dotnet run --project PuppeteerSharpPdfDemo-Local.csproj auto-exit -f net471