Skip to content

Commit a81428f

Browse files
authored
Merge pull request #1482 from github/brianaj/external-pr-1452
External PR 1452: Add support for linux-arm64 architecture
2 parents 7f43924 + 6daa5c0 commit a81428f

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ jobs:
142142
e2e-test:
143143
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == 'github'
144144
needs: [build-for-e2e-test]
145+
permissions:
146+
checks: write
147+
contents: read
145148
strategy:
146149
fail-fast: false
147150
matrix:
@@ -321,10 +324,12 @@ jobs:
321324
./dist/ado2gh.*.win-x64.zip
322325
./dist/ado2gh.*.win-x86.zip
323326
./dist/ado2gh.*.linux-x64.tar.gz
327+
./dist/ado2gh.*.linux-arm64.tar.gz
324328
./dist/ado2gh.*.osx-x64.tar.gz
325329
./dist/win-x64/gei-windows-amd64.exe
326330
./dist/win-x86/gei-windows-386.exe
327331
./dist/linux-x64/gei-linux-amd64
332+
./dist/linux-arm64/gei-linux-arm64
328333
./dist/osx-x64/gei-darwin-amd64
329334
330335
- name: Create gh-ado2gh Release
@@ -337,6 +342,7 @@ jobs:
337342
./dist/win-x86/ado2gh-windows-386.exe
338343
./dist/win-x64/ado2gh-windows-amd64.exe
339344
./dist/linux-x64/ado2gh-linux-amd64
345+
./dist/linux-arm64/ado2gh-linux-arm64
340346
./dist/osx-x64/ado2gh-darwin-amd64
341347
342348
- name: Create gh-bbs2gh Release
@@ -349,6 +355,7 @@ jobs:
349355
./dist/win-x86/bbs2gh-windows-386.exe
350356
./dist/win-x64/bbs2gh-windows-amd64.exe
351357
./dist/linux-x64/bbs2gh-linux-amd64
358+
./dist/linux-arm64/bbs2gh-linux-arm64
352359
./dist/osx-x64/bbs2gh-darwin-amd64
353360
354361
- name: Archive Release Notes

RELEASENOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
- Added support for linux-arm64 architecture for all CLI binaries (gei, ado2gh, bbs2gh), enabling users to run GEI on ARM-based systems including MacOS with Apple Silicon inside ARC runners
12
- Fixed issue where alert migration commands (migrate-code-scanning-alerts, migrate-secret-alerts) required GH_PAT environment variable even when GitHub tokens were provided via command-line arguments (--github-source-pat, --github-target-pat). These commands now work correctly with CLI-only token authentication.
23
- Added support for configurable multipart upload chunk size for GitHub-owned storage uploads via `GITHUB_OWNED_STORAGE_MULTIPART_MEBIBYTES` environment variable (minimum 5 MiB, default 100 MiB) to improve upload reliability in environments with proxies or slow connections

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)