Skip to content

Commit d614b18

Browse files
authored
Create build.yml
1 parent 9ff6b23 commit d614b18

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
tags:
8+
- '*'
9+
10+
env:
11+
# Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages
12+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
13+
# Disable sending usage data to Microsoft
14+
DOTNET_CLI_TELEMETRY_OPTOUT: true
15+
16+
jobs:
17+
build:
18+
name: Build-${{matrix.os}}
19+
runs-on: ${{matrix.os}}
20+
strategy:
21+
matrix:
22+
os: [ubuntu-latest, windows-latest, macOS-latest]
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v2
26+
with:
27+
lfs: true
28+
- name: 'Install .NET Core SDK'
29+
uses: actions/setup-dotnet@v1
30+
with:
31+
dotnet-version: 3.1.100
32+
- name: 'Dotnet Cake Build'
33+
uses: ecampidoglio/[email protected]
34+
with:
35+
target: Build
36+
- name: 'Dotnet Cake Test'
37+
uses: ecampidoglio/[email protected]
38+
with:
39+
target: Test
40+
- name: 'Dotnet Cake Pack'
41+
uses: ecampidoglio/[email protected]
42+
with:
43+
target: Pack
44+
- name: 'Publish Artefacts'
45+
uses: actions/[email protected]
46+
with:
47+
name: ${{matrix.os}}
48+
path: './Artefacts'

0 commit comments

Comments
 (0)