-
-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (33 loc) · 838 Bytes
/
build.yml
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
name: Build master
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use .NET Core 3.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Use .NET Core 5.0.x SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
# Not specifying a version will attempt to install via global.json
- name: Use .NET Core global.json
uses: actions/setup-dotnet@v1
- name: Build
if: runner.os != 'Windows'
run: |
chmod +x ./build.sh
./build.sh
env:
CI: true
- name: Build
if: runner.os == 'Windows'
run: ./build.cmd
env:
CI: true