Upgrade to Cake 2.0.0 #843
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-ignore: | |
- "dependabot/**" # Will still build PRs, but not the branches themself | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ | |
windows-latest, | |
ubuntu-24.04, | |
# Cake.Recipe currently does not support macOS 14 (M1) due to usage of Cake.Git. | |
macos-13] | |
steps: | |
- uses: actions/[email protected] | |
- name: Fetch all branches and tags | |
run: git fetch --unshallow --prune | |
- name: Tools caching | |
uses: actions/[email protected] | |
with: | |
path: tools | |
key: ${{ matrix.os }}-tools-${{ hashFiles('recipe.cake', 'Source/Cake.Recipe/Content/addins.cake', 'Source/Cake.Recipe/Content/tools.cake', 'Source/Cake.Recipe/Content/modules.cake') }} | |
- name: Creating includes.cake file | |
run: | | |
Get-ChildItem "./Source/Cake.Recipe/Content/*.cake" -Exclude "version.cake" | % { | |
"#load `"local:?path=$($_.FullName -replace '\\','/')`"" | |
} | Out-File "./includes.cake" | |
shell: pwsh | |
- name: Build Cake.Recipe | |
uses: cake-build/[email protected] | |
with: | |
script-path: recipe.cake | |
target: CI | |
cake-version: 2.2.0 | |
cake-bootstrap: true |