This repository has been archived by the owner on Sep 8, 2023. It is now read-only.
(maint) Update actions/checkout action to v4 #408
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: | |
paths-ignore: | |
- "README.md" | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
#mimic "skip_branch_with_pr: true", see https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012/4 | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
strategy: | |
matrix: | |
os: [ ubuntu-22.04, windows-2022, macos-12 ] | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Fetch all tags and branches | |
run: git fetch --prune --unshallow | |
- uses: actions/setup-dotnet@v3.2.0 | |
with: | |
dotnet-version: | | |
5.0.x | |
6.0.x | |
7.0.x | |
- name: Cache Tools | |
uses: actions/cache@v3 | |
with: | |
path: tools | |
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }} | |
- name: Build project | |
uses: cake-build/cake-action@v1 | |
with: | |
script-path: recipe.cake | |
target: CI | |
verbosity: Diagnostic | |
cake-version: 1.3.0 | |
cake-bootstrap: true | |
- name: Upload Issues-Report | |
uses: actions/upload-artifact@v3 | |
with: | |
if-no-files-found: warn | |
name: ${{ matrix.os }} issues | |
path: BuildArtifacts/report.html | |
- name: Upload Packages | |
uses: actions/upload-artifact@v3 | |
if: runner.os == 'Windows' | |
with: | |
if-no-files-found: warn | |
name: package | |
path: BuildArtifacts/Packages/**/* |