-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (55 loc) · 1.61 KB
/
build.yml
File metadata and controls
64 lines (55 loc) · 1.61 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build CI
on:
push:
branches:
- master
paths:
- '**'
- '!.editorconfig'
- '!.gitattributes'
- '!.gitignore'
- '!*.md'
- '!LICENSE'
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
CONFIGURATION: 'Release'
VERBOSITY: 'Minimal'
jobs:
Build:
name: Build TinyCLR
runs-on: [windows-latest]
strategy:
matrix:
dotnet: ['3.1.100']
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Extract build information into variables
id: info
run: |
echo "##[set-output name=build;]$(echo $(git rev-list --count HEAD))"
echo "##[set-output name=copyright;]$(echo © $(date -u +%Y) Bytewizer. All rights reserved.)"
- name: Show build information
run: |
echo build=${{ steps.info.outputs.build }}
echo copyright=${{ steps.info.outputs.copyright }}
- name: Setup build
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Display dotnet information
run: dotnet --info
- name: Pack libraries
run: >-
dotnet pack -p:BuildNumber="${{ steps.info.outputs.build }}" -p:Copyright="${{ steps.info.outputs.copyright }}"
--version-suffix prebuild.${{ steps.info.outputs.build }}
--include-symbols
--verbosity ${env:VERBOSITY}
--configuration ${env:CONFIGURATION}
--output .builds/artifacts
- name: Upload build artifacts
uses: actions/upload-artifact@v1
with:
name: Build
path: .builds/artifacts