4
4
DOTNET_CLI_TELEMETRY_OPTOUT : 1
5
5
jobs :
6
6
build :
7
- runs-on : ${{matrix.os}}
8
- strategy :
9
- fail-fast : false
10
- matrix :
11
- os : [ubuntu-latest, windows-latest, macOS-latest]
7
+ runs-on : windows-latest
12
8
steps :
13
9
- name : Checkout
14
10
uses : actions/checkout@v1
@@ -26,27 +22,19 @@ jobs:
26
22
dotnet tool install --global minver-cli --version 2.3.1
27
23
version=$(minver --tag-prefix v)
28
24
echo "::set-env name=MINVERVERSIONOVERRIDE::$version"
29
- - name : Build Windows
30
- if : matrix.os == 'windows-latest'
25
+ - name : Build
31
26
run : dotnet build --configuration Release Exceptionless.Net.Windows.sln
32
- - name : Build Non-Windows
33
- if : matrix.os != 'windows-latest'
34
- run : dotnet build --configuration Release Exceptionless.Net.NonWindows.sln
35
- - name : Run Tests Windows
36
- if : matrix.os == 'windows-latest'
27
+ - name : Run Tests
37
28
run : dotnet test --configuration Release --no-build Exceptionless.Net.Windows.sln
38
- - name : Run Tests Non-Windows
39
- if : matrix.os != 'windows-latest'
40
- run : dotnet test --configuration Release --no-build Exceptionless.Net.NonWindows.sln
41
29
- name : Package
42
- if : github.event_name != 'pull_request' && matrix.os == 'windows-latest'
30
+ if : github.event_name != 'pull_request'
43
31
run : dotnet pack --configuration Release --no-build Exceptionless.Net.Windows.sln
44
32
- name : Install GitHub Package Tool
45
- if : github.event_name != 'pull_request' && matrix.os == 'windows-latest'
33
+ if : github.event_name != 'pull_request'
46
34
run : dotnet tool install gpr -g
47
35
- name : Publish CI Packages
48
36
shell : bash
49
- if : github.event_name != 'pull_request' && matrix.os == 'windows-latest'
37
+ if : github.event_name != 'pull_request'
50
38
run : |
51
39
for package in $(find -name "*.nupkg" | grep "minver" -v); do
52
40
echo "${0##*/}": Pushing $package...
59
47
done
60
48
- name : Publish Release Packages
61
49
shell : bash
62
- if : startsWith(github.ref, 'refs/tags/v') && matrix.os == 'windows-latest'
50
+ if : startsWith(github.ref, 'refs/tags/v')
63
51
run : |
64
52
for package in $(find -name "*.nupkg" | grep "minver" -v); do
65
53
echo "${0##*/}": Pushing $package...
0 commit comments