forked from cake-contrib/Cake.Recipe
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.28 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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-latest,
# 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