Skip to content

Commit 574ccc2

Browse files
committed
(GH-2028) Added build step for GH Actions
1 parent f9e9d35 commit 574ccc2

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/build.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
env:
12+
DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX: 2
13+
ENABLED_MULTI_STAGE_BUILD: true
14+
15+
jobs:
16+
build:
17+
name: Build
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
matrix:
21+
os: [windows-latest, ubuntu-latest, macos-latest]
22+
fail-fast: false
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
- name: Fetch all history for all tags and branches
27+
run: |
28+
git fetch --prune --unshallow
29+
- name: Cache tools
30+
id: cache-tools
31+
uses: actions/cache@v1
32+
with:
33+
path: tools
34+
key: ${{ runner.os }}-tools-${{ hashFiles('build.cake') }}
35+
- name: Cache dotnet
36+
id: cache-dotnet
37+
uses: actions/cache@v1
38+
with:
39+
path: .dotnet
40+
key: ${{ runner.os }}-dotnet-${{ hashFiles('build.config') }}
41+
- name: '[Cake build & pack]'
42+
shell: pwsh
43+
run: ./build.ps1 -target Pack
44+
- uses: actions/upload-artifact@v1
45+
if: matrix.os == 'windows-latest'
46+
with:
47+
name: storage
48+
path: ${{ github.workspace }}/artifacts
49+
name: 'Upload Package'

0 commit comments

Comments
 (0)