-
Notifications
You must be signed in to change notification settings - Fork 1
110 lines (93 loc) · 4.9 KB
/
dotnet.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c release
- name: Test
run: dotnet test --no-build --verbosity normal
- name: AcademiaMoscow.Parser
run: >
dotnet publish Parsers/AcademiaMoscow.Parser -c release -p:PublishDir=${{ github.workspace }}/dist/small --no-self-contained
-p:PublishSingleFile=false -p:DebugType=embedded -p:PublishTrimmed=false
-p:EnableCompressionInSingleFile=false --use-current-runtime
- name: BiblioClub.Parser
run: >
dotnet publish Parsers/BiblioClub.Parser -c release -p:PublishDir=${{ github.workspace }}/dist/small --no-self-contained
-p:PublishSingleFile=false -p:DebugType=embedded -p:PublishTrimmed=false
-p:EnableCompressionInSingleFile=false --use-current-runtime
- name: BiblioRossica.Parser
run: >
dotnet publish Parsers/BiblioRossica.Parser -c release -p:PublishDir=${{ github.workspace }}/dist/small --no-self-contained
-p:PublishSingleFile=false -p:DebugType=embedded -p:PublishTrimmed=false
-p:EnableCompressionInSingleFile=false --use-current-runtime
- name: BookRu.Parser
run: >
dotnet publish Parsers/BookRu.Parser -c release -p:PublishDir=${{ github.workspace }}/dist/small --no-self-contained
-p:PublishSingleFile=false -p:DebugType=embedded -p:PublishTrimmed=false
-p:EnableCompressionInSingleFile=false --use-current-runtime
- name: IBooks.Parser
run: >
dotnet publish Parsers/BookRu.Parser -c release -p:PublishDir=${{ github.workspace }}/dist/small --no-self-contained
-p:PublishSingleFile=false -p:DebugType=embedded -p:PublishTrimmed=false
-p:EnableCompressionInSingleFile=false --use-current-runtime
- name: IprBookShop.Parser
run: >
dotnet publish Parsers/IprBookShop.Parser -c release -p:PublishDir=${{ github.workspace }}/dist/small --no-self-contained
-p:PublishSingleFile=false -p:DebugType=embedded -p:PublishTrimmed=false
-p:EnableCompressionInSingleFile=false --use-current-runtime
- name: LanBook.Parser
run: >
dotnet publish Parsers/LanBook.Parser -c release -p:PublishDir=${{ github.workspace }}/dist/small --no-self-contained
-p:PublishSingleFile=false -p:DebugType=embedded -p:PublishTrimmed=false
-p:EnableCompressionInSingleFile=false --use-current-runtime
- name: ProfSpo.Parser
run: >
dotnet publish Parsers/ProfSpo.Parser -c release -p:PublishDir=${{ github.workspace }}/dist/small --no-self-contained
-p:PublishSingleFile=false -p:DebugType=embedded -p:PublishTrimmed=false
-p:EnableCompressionInSingleFile=false --use-current-runtime
- name: RuCont.Parser
run: >
dotnet publish Parsers/RuCont.Parser -c release -p:PublishDir=${{ github.workspace }}/dist/small --no-self-contained
-p:PublishSingleFile=false -p:DebugType=embedded -p:PublishTrimmed=false
-p:EnableCompressionInSingleFile=false --use-current-runtime
- name: StudentLibrary.Parser
run: >
dotnet publish Parsers/StudentLibrary.Parser -c release -p:PublishDir=${{ github.workspace }}/dist/small --no-self-contained
-p:PublishSingleFile=false -p:DebugType=embedded -p:PublishTrimmed=false
-p:EnableCompressionInSingleFile=false --use-current-runtime
- name: Urait.Parser
run: >
dotnet publish Parsers/Urait.Parser -c release -p:PublishDir=${{ github.workspace }}/dist/small --no-self-contained
-p:PublishSingleFile=false -p:DebugType=embedded -p:PublishTrimmed=false
-p:EnableCompressionInSingleFile=false --use-current-runtime
- name: Znanium.Parser
run: >
dotnet publish Parsers/Znanium.Parser -c release -p:PublishDir=${{ github.workspace }}/dist/small --no-self-contained
-p:PublishSingleFile=false -p:DebugType=embedded -p:PublishTrimmed=false
-p:EnableCompressionInSingleFile=false --use-current-runtime
- name: Book.Comparer
run: >
dotnet publish Comparer/Book.Comparer -c release -p:PublishDir=${{ github.workspace }}/dist/small --no-self-contained
-p:PublishSingleFile=false -p:DebugType=embedded -p:PublishTrimmed=false
-p:EnableCompressionInSingleFile=false --use-current-runtime
- uses: actions/upload-artifact@v3
with:
name: ElsParsers-${{ matrix.os }}
path: ${{ github.workspace }}/dist/small