Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,12 @@ jobs:
./dist/ado2gh.*.win-x64.zip
./dist/ado2gh.*.win-x86.zip
./dist/ado2gh.*.linux-x64.tar.gz
./dist/ado2gh.*.linux-arm64.tar.gz
./dist/ado2gh.*.osx-x64.tar.gz
./dist/win-x64/gei-windows-amd64.exe
./dist/win-x86/gei-windows-386.exe
./dist/linux-x64/gei-linux-amd64
./dist/linux-arm64/gei-linux-arm64
./dist/osx-x64/gei-darwin-amd64

- name: Create gh-ado2gh Release
Expand All @@ -338,6 +340,7 @@ jobs:
./dist/win-x86/ado2gh-windows-386.exe
./dist/win-x64/ado2gh-windows-amd64.exe
./dist/linux-x64/ado2gh-linux-amd64
./dist/linux-arm64/ado2gh-linux-arm64
./dist/osx-x64/ado2gh-darwin-amd64

- name: Create gh-bbs2gh Release
Expand All @@ -350,6 +353,7 @@ jobs:
./dist/win-x86/bbs2gh-windows-386.exe
./dist/win-x64/bbs2gh-windows-amd64.exe
./dist/linux-x64/bbs2gh-linux-amd64
./dist/linux-arm64/bbs2gh-linux-arm64
./dist/osx-x64/bbs2gh-darwin-amd64

- name: Archive Release Notes
Expand Down
41 changes: 41 additions & 0 deletions publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@ else {
}

Copy-Item ./dist/linux-x64/ado2gh ./dist/linux-x64/ado2gh-linux-amd64

# linux-arm64 build
Comment on lines +62 to +63
Copy link

Copilot AI Nov 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linux-arm64 builds are placed within the SKIP_LINUX conditional block. This means setting SKIP_LINUX=TRUE will skip both linux-x64 and linux-arm64 builds. Consider adding a separate SKIP_LINUX_ARM64 environment variable check if you want independent control over ARM64 builds, or clarify this behavior in documentation if the current grouping is intentional.

Suggested change
# linux-arm64 build
}
# linux-arm64 build (controlled by SKIP_LINUX_ARM64)
if ((Test-Path env:SKIP_LINUX_ARM64) -And $env:SKIP_LINUX_ARM64.ToUpper() -eq "TRUE") {
Write-Output "Skipping ado2gh Linux ARM64 build because SKIP_LINUX_ARM64 is set"
}
else {

Copilot uses AI. Check for mistakes.
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

if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}

tar -cvzf ./dist/ado2gh.$AssemblyVersion.linux-arm64.tar.gz -C ./dist/linux-arm64 ado2gh

if (Test-Path -Path ./dist/linux-arm64/ado2gh-linux-arm64) {
Remove-Item ./dist/linux-arm64/ado2gh-linux-arm64
}

Copy-Item ./dist/linux-arm64/ado2gh ./dist/linux-arm64/ado2gh-linux-arm64
}

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

Rename-Item ./dist/linux-x64/gei gei-linux-amd64

# linux-arm64 build
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

if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}

if (Test-Path -Path ./dist/linux-arm64/gei-linux-arm64) {
Remove-Item ./dist/linux-arm64/gei-linux-arm64
}

Rename-Item ./dist/linux-arm64/gei gei-linux-arm64
}

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

Rename-Item ./dist/linux-x64/bbs2gh bbs2gh-linux-amd64

# linux-arm64 build
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

if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}

if (Test-Path -Path ./dist/linux-arm64/bbs2gh-linux-arm64) {
Remove-Item ./dist/linux-arm64/bbs2gh-linux-arm64
}

Rename-Item ./dist/linux-arm64/bbs2gh bbs2gh-linux-arm64
}

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