-
-
Notifications
You must be signed in to change notification settings - Fork 481
84 lines (82 loc) · 2.67 KB
/
dotnetcore.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
name: .NET Core
on:
push:
branches: [ "develop", "release/*", "master" ]
pull_request:
branches: [ "develop", "release/*", "master" ]
jobs:
ubuntu-latest:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
dotnet-version: '5.0.x'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- uses: actions/checkout@v2
- name: 🔨 Use .NET 7.X SDK
uses: actions/[email protected]
with:
dotnet-version: '7.x'
- name: Install libgdiplus
run: sudo apt-get update && sudo apt-get install -y libgdiplus libc6-dev
# - name: t
# run: sudo ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll
# - name: t1
# run: sudo apt-get update && sudo apt-get install -y fontconfig
- name: Install libjpeg62
run: sudo apt-get install libjpeg62
- name: Restore with dotnet
run: dotnet restore
- name: Build with dotnet
run: dotnet build -c Release --no-restore
- name: Test with .NET 6.0.x
run: dotnet test src/Magicodes.ExporterAndImporter.Tests -f net6.0
- name: Test with .NET 7.0.x
run: dotnet test src/Magicodes.ExporterAndImporter.Tests -f net7.0
windows-latest:
name: windows-latest
runs-on: windows-latest
steps:
- uses: actions/[email protected]
with:
dotnet-version: '5.0.x'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- uses: actions/checkout@v2
- name: 🔨 Use .NET 7.X SDK
uses: actions/[email protected]
with:
dotnet-version: '7.x'
- name: Restore with dotnet
run: dotnet restore
- name: Build with dotnet
run: dotnet build -c Release --no-restore
- name: Test with dotnet
run: dotnet test src/Magicodes.ExporterAndImporter.Tests
macOS-latest:
name: macOS-latest
runs-on: macos-latest
steps:
- uses: actions/[email protected]
with:
dotnet-version: '5.0.x'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- uses: actions/checkout@v2
- name: 🔨 Use .NET 7.X SDK
uses: actions/[email protected]
with:
dotnet-version: '7.x'
- name: Restore with dotnet
run: dotnet restore
- name: Build with dotnet
run: dotnet build -c Release --no-restore
- name: Test with .NET 6.0.x
run: dotnet test src/Magicodes.ExporterAndImporter.Tests -f net6.0
- name: Test with .NET 7.0.x
run: dotnet test src/Magicodes.ExporterAndImporter.Tests -f net7.0