Skip to content

Commit 71ea724

Browse files
committed
(#143) Add initial GitHub Action build
1 parent 264e2b8 commit 71ea724

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/build.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
- "feature/**"
9+
- "release/**"
10+
- "hotfix/**"
11+
tags:
12+
- "*"
13+
pull_request:
14+
15+
jobs:
16+
build:
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
matrix:
20+
os: [ windows-2019, ubuntu-18.04, macos-10.15 ]
21+
22+
steps:
23+
- name: Checkout the repository
24+
uses: actions/checkout@v2
25+
26+
- name: Fetch all tags and branches
27+
run: git fetch --prune --unshallow
28+
29+
- name: Cache Tools
30+
uses: actions/cache@v2
31+
with:
32+
path: tools
33+
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
34+
35+
- name: Build project
36+
uses: cake-build/cake-action@v1
37+
with:
38+
script-path: recipe.cake
39+
target: CI
40+
verbosity: Normal
41+
cake-version: 1.1.0
42+
cake-bootstrap: true
43+
44+
- name: Upload Issues-Report
45+
uses: actions/upload-artifact@v2
46+
with:
47+
if-no-files-found: warn
48+
name: ${{ matrix.os }} issues
49+
path: BuildArtifacts/report.html
50+
51+
- name: Upload Packages
52+
uses: actions/upload-artifact@v2
53+
if: runner.os == 'Windows'
54+
with:
55+
if-no-files-found: warn
56+
name: package
57+
path: BuildArtifacts/Packages/**/*

0 commit comments

Comments
 (0)