Skip to content

Commit de2bbb1

Browse files
authored
Merge pull request #1510 from sebdanielsson/darwin-arm64-builds
Add native macOS ARM64 (Apple Silicon) builds for all CLIs
2 parents 0f2213f + c16860d commit de2bbb1

3 files changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/CI.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,13 @@ jobs:
347347
./dist/ado2gh.*.linux-x64.tar.gz
348348
./dist/ado2gh.*.linux-arm64.tar.gz
349349
./dist/ado2gh.*.osx-x64.tar.gz
350+
./dist/ado2gh.*.osx-arm64.tar.gz
350351
./dist/win-x64/gei-windows-amd64.exe
351352
./dist/win-x86/gei-windows-386.exe
352353
./dist/linux-x64/gei-linux-amd64
353354
./dist/linux-arm64/gei-linux-arm64
354355
./dist/osx-x64/gei-darwin-amd64
356+
./dist/osx-arm64/gei-darwin-arm64
355357
356358
- name: Create gh-ado2gh Release
357359
# a06a81a03ee405af7f2048a818ed3f03bbf83c7b is tag v2, pinned to avoid supply chain attacks
@@ -366,6 +368,7 @@ jobs:
366368
./dist/linux-x64/ado2gh-linux-amd64
367369
./dist/linux-arm64/ado2gh-linux-arm64
368370
./dist/osx-x64/ado2gh-darwin-amd64
371+
./dist/osx-arm64/ado2gh-darwin-arm64
369372
370373
- name: Create gh-bbs2gh Release
371374
# a06a81a03ee405af7f2048a818ed3f03bbf83c7b is tag v2, pinned to avoid supply chain attacks
@@ -380,6 +383,7 @@ jobs:
380383
./dist/linux-x64/bbs2gh-linux-amd64
381384
./dist/linux-arm64/bbs2gh-linux-arm64
382385
./dist/osx-x64/bbs2gh-darwin-amd64
386+
./dist/osx-arm64/bbs2gh-darwin-arm64
383387
384388
- name: Archive Release Notes
385389
shell: pwsh

RELEASENOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
- Fixed `ado2gh generate-script --download-migration-logs` to generate valid commands using `--target-api-url` that work with the `ado2gh download-logs` command
22
- Added `--target-api-url` support to `ado2gh download-logs` and `bbs2gh download-logs` commands for GHEC data residency scenarios
33
- Maintained backward compatibility: `--github-api-url` continues to work as an alias for `--target-api-url` in `ado2gh` and `bbs2gh` CLIs
4+
- Added native macOS ARM64 (Apple Silicon) builds for all CLIs

publish.ps1

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,21 @@ else {
9393
}
9494

9595
Copy-Item ./dist/osx-x64/ado2gh ./dist/osx-x64/ado2gh-darwin-amd64
96+
97+
# osx-arm64 build
98+
dotnet publish src/ado2gh/ado2gh.csproj -c Release -o dist/osx-arm64/ -r osx-arm64 -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=partial --self-contained true /p:DebugType=None /p:IncludeNativeLibrariesForSelfExtract=true /p:VersionPrefix=$AssemblyVersion
99+
100+
if ($LASTEXITCODE -ne 0) {
101+
exit $LASTEXITCODE
102+
}
103+
104+
tar -cvzf ./dist/ado2gh.$AssemblyVersion.osx-arm64.tar.gz -C ./dist/osx-arm64 ado2gh
105+
106+
if (Test-Path -Path ./dist/osx-arm64/ado2gh-darwin-arm64) {
107+
Remove-Item ./dist/osx-arm64/ado2gh-darwin-arm64
108+
}
109+
110+
Copy-Item ./dist/osx-arm64/ado2gh ./dist/osx-arm64/ado2gh-darwin-arm64
96111
}
97112

98113

@@ -171,6 +186,19 @@ else {
171186
}
172187

173188
Rename-Item ./dist/osx-x64/gei gei-darwin-amd64
189+
190+
# osx-arm64 build
191+
dotnet publish src/gei/gei.csproj -c Release -o dist/osx-arm64/ -r osx-arm64 -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=partial --self-contained true /p:DebugType=None /p:IncludeNativeLibrariesForSelfExtract=true /p:VersionPrefix=$AssemblyVersion
192+
193+
if ($LASTEXITCODE -ne 0) {
194+
exit $LASTEXITCODE
195+
}
196+
197+
if (Test-Path -Path ./dist/osx-arm64/gei-darwin-arm64) {
198+
Remove-Item ./dist/osx-arm64/gei-darwin-arm64
199+
}
200+
201+
Rename-Item ./dist/osx-arm64/gei gei-darwin-arm64
174202
}
175203

176204
### bbs2gh ###
@@ -248,4 +276,17 @@ else {
248276
}
249277

250278
Rename-Item ./dist/osx-x64/bbs2gh bbs2gh-darwin-amd64
279+
280+
# osx-arm64 build
281+
dotnet publish src/bbs2gh/bbs2gh.csproj -c Release -o dist/osx-arm64/ -r osx-arm64 -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=partial --self-contained true /p:DebugType=None /p:IncludeNativeLibrariesForSelfExtract=true /p:VersionPrefix=$AssemblyVersion
282+
283+
if ($LASTEXITCODE -ne 0) {
284+
exit $LASTEXITCODE
285+
}
286+
287+
if (Test-Path -Path ./dist/osx-arm64/bbs2gh-darwin-arm64) {
288+
Remove-Item ./dist/osx-arm64/bbs2gh-darwin-arm64
289+
}
290+
291+
Rename-Item ./dist/osx-arm64/bbs2gh bbs2gh-darwin-arm64
251292
}

0 commit comments

Comments
 (0)