Skip to content

Use the AppDomainIsolatedTask to isolate the task #29

Use the AppDomainIsolatedTask to isolate the task

Use the AppDomainIsolatedTask to isolate the task #29

Workflow file for this run

name: build
on:
push:
branches: [ main, nuspec ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-2022
env:
Configuration: ${{ matrix.configuration }}
VersionSuffix: 'preview-${{ github.run_number }}'
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6
- name: setup msbuild
uses: microsoft/setup-msbuild@v1
- name: build
run: dotnet build -c ${{ env.Configuration }}
- name: test
run: dotnet test --no-build --no-restore -c ${{ env.Configuration }}
- name: pack
run: dotnet pack --no-build --no-restore src/NetOfficeFw.Build.csproj -c ${{ env.Configuration }} -o dist
- name: archive
if: always()
uses: actions/upload-artifact@v3
with:
name: NetOfficeFw.Build-${{ env.VersionSuffix }}.nupkg
path: dist/NetOfficeFw.Build.*.nupkg