Don't generate package on every build #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
buildtest: | |
runs-on: windows-latest | |
steps: | |
- name: Install .NET 6.0 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.0.x | |
- name: Install .NET 8.0 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Restore packages | |
run: dotnet restore | |
- name: Build Debug | |
run: dotnet build -c Debug | |
- name: Run Tests | |
run: dotnet test --no-build --filter TestCategory!=com0com | |
buildrelease: | |
runs-on: windows-latest | |
steps: | |
- name: Install .NET 6.0 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.0.x | |
- name: Install .NET 8.0 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Restore packages | |
run: dotnet restore | |
- name: Build Release | |
run: dotnet build -c Release -p:ContinuousIntegrationBuild=true |