Skip to content

V19 to Master

V19 to Master #1440

Workflow file for this run

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 == 'macos-latest'
working-directory: ./demos/PuppeteerSharpPdfDemo
run: |
dotnet run --project PuppeteerSharpPdfDemo-Local.csproj -r osx-arm64 -c Release -f net8.0 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