forked from p2pderivatives/cfd-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (84 loc) · 2.05 KB
/
check_pre-merge.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: pre-merge check
on:
push:
branches:
- master
- develop
- features/sprint*
- stable_v*
- ci/*
pull_request:
branches:
- master
- develop
- features/sprint*
- stable_v*
jobs:
test-dotnet8:
name: dotnet 8.0
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-13, windows-2022, ubuntu-22.04]
steps:
- name: setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- uses: actions/checkout@v4
- name: build and test
if: runner.os != 'Windows'
run: |
./tools/build.sh
./tools/test.sh
- name: build and test on win
if: runner.os == 'Windows'
run: |
./tools/build.bat
./tools/test.bat
test-dotnet7:
name: dotnet 7.0
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [macos-13, windows-2022, ubuntu-22.04]
os: [windows-2022, ubuntu-22.04]
steps:
- name: setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- uses: actions/checkout@v4
- name: build and test
if: runner.os != 'Windows'
run: |
./tools/build_net7.sh
./tools/test_net7.sh
- name: build and test on win
if: runner.os == 'Windows'
run: |
./tools/build_net7.bat
./tools/test_net7.bat
test-dotnet6:
name: dotnet 6.0
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [macos-13, windows-2022, ubuntu-22.04]
os: [windows-2022, ubuntu-22.04]
steps:
- name: setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- uses: actions/checkout@v4
- name: build and test
if: runner.os != 'Windows'
run: |
./tools/build_net6.sh
./tools/test_net6.sh
- name: build and test on win
if: runner.os == 'Windows'
run: |
./tools/build_net6.bat
./tools/test_net6.bat