-
Notifications
You must be signed in to change notification settings - Fork 14
203 lines (196 loc) · 7.31 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
name: .NET
on: [push]
env:
DOTNET_SDK_VERSION: '7.0.x'
INCLUDE_PRERELEASE: false
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
include-prerelease: ${{ env.INCLUDE_PRERELEASE }}
- name: Setup Node.js
uses: actions/setup-node@v2.1.5
- name: Install TypeScript and typedoc
run: sudo npm install -g typescript@4.2.* typedoc@0.20.*
- name: Build with dotnet
run: dotnet build
- name: Test with dotnet
run: dotnet test
publish-managed:
runs-on: ubuntu-latest
needs: build-and-test
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
include-prerelease: ${{ env.INCLUDE_PRERELEASE }}
- name: Publish Windows x86 Release
run: dotnet publish TypedocConverter -c Release -o WindowsBuildx86 -r win-x86 --no-self-contained /p:PublishSingleFile=true
- name: Publish Windows x64 Release
run: dotnet publish TypedocConverter -c Release -o WindowsBuildx64 -r win-x64 --no-self-contained /p:PublishSingleFile=true
- name: Publish Windows ARM Release
run: dotnet publish TypedocConverter -c Release -o WindowsBuildARM -r win-arm --no-self-contained /p:PublishSingleFile=true
- name: Publish Windows ARM64 Release
run: dotnet publish TypedocConverter -c Release -o WindowsBuildARM64 -r win-arm64 --no-self-contained /p:PublishSingleFile=true
- name: Publish Linux x64 Release
run: dotnet publish TypedocConverter -c Release -o LinuxBuildx64 -r linux-x64 --no-self-contained /p:PublishSingleFile=true
- name: Publish Linux ARM Release
run: dotnet publish TypedocConverter -c Release -o LinuxBuildARM -r linux-arm --no-self-contained /p:PublishSingleFile=true
- name: Publish Linux ARM64 Release
run: dotnet publish TypedocConverter -c Release -o LinuxBuildARM64 -r linux-arm64 --no-self-contained /p:PublishSingleFile=true
- name: Publish macOS x64 Release
run: dotnet publish TypedocConverter -c Release -o macOSBuildx64 -r osx-x64 --no-self-contained /p:PublishSingleFile=true
- name: Publish macOS ARM64 Release
run: dotnet publish TypedocConverter -c Release -o macOSBuildARM64 -r osx-arm64 --no-self-contained /p:PublishSingleFile=true
- name: Upload Windows x86 artifact
uses: actions/upload-artifact@v1.0.0
with:
name: Windows_x86
path: WindowsBuildx86
- name: Upload Windows x64 artifact
uses: actions/upload-artifact@v1.0.0
with:
name: Windows_x64
path: WindowsBuildx64
- name: Upload Windows ARM artifact
uses: actions/upload-artifact@v1.0.0
with:
name: Windows_ARM
path: WindowsBuildARM
- name: Upload Windows ARM64 artifact
uses: actions/upload-artifact@v1.0.0
with:
name: Windows_ARM64
path: WindowsBuildARM64
- name: Upload Linux x64 artifact
uses: actions/upload-artifact@v1.0.0
with:
name: Linux_x64
path: LinuxBuildx64
- name: Upload Linux ARM artifact
uses: actions/upload-artifact@v1.0.0
with:
name: Linux_ARM
path: LinuxBuildARM
- name: Upload Linux ARM64 artifact
uses: actions/upload-artifact@v1.0.0
with:
name: Linux_ARM64
path: LinuxBuildARM64
- name: Upload macOS x64 artifact
uses: actions/upload-artifact@v1.0.0
with:
name: macOS_x64
path: macOSBuildx64
- name: Upload macOS ARM64 artifact
uses: actions/upload-artifact@v1.0.0
with:
name: macOS_ARM64
path: macOSBuildARM64
# publish-native-windows:
# runs-on: windows-latest
# needs: build-and-test
#
# steps:
# - uses: actions/checkout@v2
# - name: Setup .NET
# uses: actions/setup-dotnet@v1
# with:
# dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
# include-prerelease: ${{ env.INCLUDE_PRERELEASE }}
# - name: Publish Native Windows x64 Release
# run: |
# dotnet publish TypedocConverter -c Release -r win-x64 -o WindowsNativeBuildx64 /p:PublishAot=true
# del WindowsNativeBuildx64\*.pdb
# - name: Upload Windows x64 native artifact
# uses: actions/upload-artifact@v1.0.0
# with:
# name: Windows_x64_Native
# path: WindowsNativeBuildx64
# - name: Publish Native Windows ARM64 Release
# run: |
# dotnet publish TypedocConverter -c Release -r win-arm64 -o WindowsNativeBuildARM64 /p:PublishAot=true
# del WindowsNativeBuildARM64\*.pdb
# - name: Upload Windows ARM64 native artifact
# uses: actions/upload-artifact@v1.0.0
# with:
# name: Windows_ARM64_Native
# path: WindowsNativeBuildARM64
#
# publish-native-linux:
# runs-on: ubuntu-latest
# needs: build-and-test
#
# steps:
# - uses: actions/checkout@v2
# - name: Setup .NET
# uses: actions/setup-dotnet@v1
# with:
# dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
# include-prerelease: ${{ env.INCLUDE_PRERELEASE }}
# - name: Install Kerberos 5 library
# run: |
# sudo apt update
# sudo apt install -y libkrb5-dev
# - name: Publish Native Linux x64 Release
# run: |
# dotnet publish TypedocConverter -c Release -r linux-x64 -o LinuxNativeBuildx64 /p:PublishAot=true
# rm LinuxNativeBuildx64/*.pdb
# strip LinuxNativeBuildx64/TypedocConverter
# - name: Upload Linux x64 native artifact
# uses: actions/upload-artifact@v1.0.0
# with:
# name: Linux_x64_Native
# path: LinuxNativeBuildx64
#
# publish-native-linux-arm64:
# runs-on: ubuntu-latest
# needs: build-and-test
# container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-arm64-20220312201346-b2c2436
#
# steps:
# - uses: actions/checkout@v2
# - name: Setup .NET
# uses: actions/setup-dotnet@v1
# with:
# dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
# include-prerelease: ${{ env.INCLUDE_PRERELEASE }}
# - name: Publish Native Linux ARM64 Release
# run: |
# dotnet publish TypedocConverter -c Release -r linux-arm64 -o LinuxNativeBuildARM64 /p:PublishAot=true /p:CppCompilerAndLinker=clang-9 /p:SysRoot=/crossrootfs/arm64
# rm LinuxNativeBuildARM64/*.pdb
# aarch64-linux-gnu-strip LinuxNativeBuildARM64/TypedocConverter
# - name: Upload Linux ARM64 native artifact
# uses: actions/upload-artifact@v1.0.0
# with:
# name: Linux_ARM64_Native
# path: LinuxNativeBuildARM64
#
# publish-native-macos:
# runs-on: macos-latest
# needs: build-and-test
#
# steps:
# - uses: actions/checkout@v2
# - name: Setup .NET
# uses: actions/setup-dotnet@v1
# with:
# dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
# include-prerelease: ${{ env.INCLUDE_PRERELEASE }}
# - name: Publish Native macOS x64 Release
# run: |
# dotnet publish TypedocConverter -c Release -r osx-x64 -o macOSNativeBuildx64 /p:PublishAot=true
# rm macOSNativeBuildx64/*.pdb
# strip macOSNativeBuildx64/TypedocConverter
# - name: Upload macOS x64 native artifact
# uses: actions/upload-artifact@v1.0.0
# with:
# name: macOS_x64_Native
# path: macOSNativeBuildx64