Skip to content

Commit c6286ee

Browse files
committed
Run build on multiple platforms
1 parent af0ff39 commit c6286ee

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ env:
44
DOTNET_CLI_TELEMETRY_OPTOUT: 1
55
jobs:
66
build:
7-
runs-on: windows-latest
7+
runs-on: ${{matrix.os}}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, windows-latest, macOS-latest]
811
steps:
912
- name: Checkout
1013
uses: actions/checkout@v1
@@ -19,7 +22,7 @@ jobs:
1922
- name: Build Version
2023
shell: bash
2124
run: |
22-
dotnet tool install --global minver-cli --version 2.3.0
25+
dotnet tool install --global minver-cli --version 2.3.1
2326
version=$(minver --tag-prefix v)
2427
echo "::set-env name=MINVERVERSIONOVERRIDE::$version"
2528
- name: Build
@@ -34,7 +37,7 @@ jobs:
3437
run: dotnet tool install gpr -g
3538
- name: Publish CI Packages
3639
shell: bash
37-
if: github.event_name != 'pull_request'
40+
if: github.event_name != 'pull_request' && matrix.os == 'ubuntu-latest'
3841
run: |
3942
for package in $(find -name "*.nupkg" | grep "minver" -v); do
4043
echo "${0##*/}": Pushing $package...
@@ -47,7 +50,7 @@ jobs:
4750
done
4851
- name: Publish Release Packages
4952
shell: bash
50-
if: startsWith(github.ref, 'refs/tags/v')
53+
if: startsWith(github.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest'
5154
run: |
5255
for package in $(find -name "*.nupkg" | grep "minver" -v); do
5356
echo "${0##*/}": Pushing $package...

0 commit comments

Comments
 (0)