File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
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'
You can’t perform that action at this time.
0 commit comments