Skip to content

Commit 41071d6

Browse files
committed
Merge external PR #1452: Add support for linux-arm64 architecture
2 parents 0063cd9 + 9348cef commit 41071d6

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,12 @@ jobs:
321321
./dist/ado2gh.*.win-x64.zip
322322
./dist/ado2gh.*.win-x86.zip
323323
./dist/ado2gh.*.linux-x64.tar.gz
324+
./dist/ado2gh.*.linux-arm64.tar.gz
324325
./dist/ado2gh.*.osx-x64.tar.gz
325326
./dist/win-x64/gei-windows-amd64.exe
326327
./dist/win-x86/gei-windows-386.exe
327328
./dist/linux-x64/gei-linux-amd64
329+
./dist/linux-arm64/gei-linux-arm64
328330
./dist/osx-x64/gei-darwin-amd64
329331
330332
- name: Create gh-ado2gh Release
@@ -337,6 +339,7 @@ jobs:
337339
./dist/win-x86/ado2gh-windows-386.exe
338340
./dist/win-x64/ado2gh-windows-amd64.exe
339341
./dist/linux-x64/ado2gh-linux-amd64
342+
./dist/linux-arm64/ado2gh-linux-arm64
340343
./dist/osx-x64/ado2gh-darwin-amd64
341344
342345
- name: Create gh-bbs2gh Release
@@ -349,6 +352,7 @@ jobs:
349352
./dist/win-x86/bbs2gh-windows-386.exe
350353
./dist/win-x64/bbs2gh-windows-amd64.exe
351354
./dist/linux-x64/bbs2gh-linux-amd64
355+
./dist/linux-arm64/bbs2gh-linux-arm64
352356
./dist/osx-x64/bbs2gh-darwin-amd64
353357
354358
- name: Archive Release Notes

publish.ps1

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,21 @@ else {
5959
}
6060

6161
Copy-Item ./dist/linux-x64/ado2gh ./dist/linux-x64/ado2gh-linux-amd64
62+
63+
# linux-arm64 build
64+
dotnet publish src/ado2gh/ado2gh.csproj -c Release -o dist/linux-arm64/ -r linux-arm64 -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=partial --self-contained true /p:DebugType=None /p:IncludeNativeLibrariesForSelfExtract=true /p:VersionPrefix=$AssemblyVersion
65+
66+
if ($LASTEXITCODE -ne 0) {
67+
exit $LASTEXITCODE
68+
}
69+
70+
tar -cvzf ./dist/ado2gh.$AssemblyVersion.linux-arm64.tar.gz -C ./dist/linux-arm64 ado2gh
71+
72+
if (Test-Path -Path ./dist/linux-arm64/ado2gh-linux-arm64) {
73+
Remove-Item ./dist/linux-arm64/ado2gh-linux-arm64
74+
}
75+
76+
Copy-Item ./dist/linux-arm64/ado2gh ./dist/linux-arm64/ado2gh-linux-arm64
6277
}
6378

6479
if ((Test-Path env:SKIP_MACOS) -And $env:SKIP_MACOS.ToUpper() -eq "TRUE") {
@@ -126,6 +141,19 @@ else {
126141
}
127142

128143
Rename-Item ./dist/linux-x64/gei gei-linux-amd64
144+
145+
# linux-arm64 build
146+
dotnet publish src/gei/gei.csproj -c Release -o dist/linux-arm64/ -r linux-arm64 -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=partial --self-contained true /p:DebugType=None /p:IncludeNativeLibrariesForSelfExtract=true /p:VersionPrefix=$AssemblyVersion
147+
148+
if ($LASTEXITCODE -ne 0) {
149+
exit $LASTEXITCODE
150+
}
151+
152+
if (Test-Path -Path ./dist/linux-arm64/gei-linux-arm64) {
153+
Remove-Item ./dist/linux-arm64/gei-linux-arm64
154+
}
155+
156+
Rename-Item ./dist/linux-arm64/gei gei-linux-arm64
129157
}
130158

131159
if ((Test-Path env:SKIP_MACOS) -And $env:SKIP_MACOS.ToUpper() -eq "TRUE") {
@@ -190,6 +218,19 @@ else {
190218
}
191219

192220
Rename-Item ./dist/linux-x64/bbs2gh bbs2gh-linux-amd64
221+
222+
# linux-arm64 build
223+
dotnet publish src/bbs2gh/bbs2gh.csproj -c Release -o dist/linux-arm64/ -r linux-arm64 -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=partial --self-contained true /p:DebugType=None /p:IncludeNativeLibrariesForSelfExtract=true /p:VersionPrefix=$AssemblyVersion
224+
225+
if ($LASTEXITCODE -ne 0) {
226+
exit $LASTEXITCODE
227+
}
228+
229+
if (Test-Path -Path ./dist/linux-arm64/bbs2gh-linux-arm64) {
230+
Remove-Item ./dist/linux-arm64/bbs2gh-linux-arm64
231+
}
232+
233+
Rename-Item ./dist/linux-arm64/bbs2gh bbs2gh-linux-arm64
193234
}
194235

195236
if ((Test-Path env:SKIP_MACOS) -And $env:SKIP_MACOS.ToUpper() -eq "TRUE") {

0 commit comments

Comments
 (0)