-
Notifications
You must be signed in to change notification settings - Fork 95
43 lines (34 loc) · 899 Bytes
/
pr.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
38
39
40
41
42
43
name: Build and Test PR
on:
pull_request:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
dotnet: [5.0.400]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
# Fix for https://github.com/actions/setup-dotnet/issues/29#issuecomment-548740241
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Setup .NET Core 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.425
- name: Setup .NET Core 8
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.400
- name: Build on Windows
if: matrix.os == 'windows-latest'
run: .\build.cmd
- name: Build on Unix
if: matrix.os != 'windows-latest'
run: ./build.sh