Initial version #20
Workflow file for this run
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: Build | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- "release/**" | |
- "hotfix/**" | |
tags: | |
- "*" | |
paths-ignore: | |
- "README.md" | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ windows-2022, ubuntu-22.04, macos-12 ] | |
env: | |
GITHUB_PAT: ${{ secrets.GH_TOKEN }} | |
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
NUGET_SOURCE: "https://api.nuget.org/v3/index.json" | |
steps: | |
- name: Checkout the repository | |
uses: actions/[email protected] | |
- name: Fetch all tags and branches | |
run: git fetch --prune --unshallow | |
- uses: actions/[email protected] | |
with: | |
# codecov needs 2.1, unittests needs 3.1, gitversion needs 5.0 | |
dotnet-version: | | |
2.1 | |
5.0 | |
6.0 | |
7.0 | |
8.0 | |
- name: Cache Tools | |
uses: actions/[email protected] | |
with: | |
path: tools | |
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }} | |
- name: Build project | |
uses: cake-build/[email protected] | |
with: | |
script-path: recipe.cake | |
target: CI | |
cake-version: 1.3.0 | |
- name: Upload Issues | |
uses: actions/[email protected] | |
with: | |
if-no-files-found: warn | |
name: ${{ matrix.os }} Issues | |
path: | | |
BuildArtifacts/report.html | |
BuildArtifacts/**/coverlet/*.xml | |
- name: Upload Packages | |
uses: actions/[email protected] | |
if: runner.os == 'Windows' | |
with: | |
if-no-files-found: warn | |
name: package | |
path: BuildArtifacts/Packages/**/* |