Skip to content

Commit a266ce3

Browse files
authored
Merge branch 'main' into main
2 parents a117c6b + de2bbb1 commit a266ce3

5 files changed

Lines changed: 51 additions & 5 deletions

File tree

.github/workflows/CI.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
with:
3434
persist-credentials: false
3535
# e33e0265a09d6d736e2ee1e0eb685ef1de4669ff is tag v3, pinned to avoid supply chain attacks
36-
- uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff
36+
- uses: extractions/setup-just@f8a3cce218d9f83db3a2ecd90e41ac3de6cdfd9b
3737
- name: Initialize CodeQL
3838
if: matrix.runner-os == 'ubuntu-latest'
3939
uses: github/codeql-action/init@v4
@@ -121,7 +121,7 @@ jobs:
121121
with:
122122
persist-credentials: false
123123
# e33e0265a09d6d736e2ee1e0eb685ef1de4669ff is tag v3, pinned to avoid supply chain attacks
124-
- uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff
124+
- uses: extractions/setup-just@f8a3cce218d9f83db3a2ecd90e41ac3de6cdfd9b
125125

126126
- name: Setup .NET
127127
uses: actions/setup-dotnet@v5
@@ -270,7 +270,7 @@ jobs:
270270

271271
- name: Publish Integration Test Results
272272
# 6e8f8c55b476f977d1c58cfbd7e337cbf86d917f is tag v2, pinned to avoid supply chain attacks
273-
uses: EnricoMi/publish-unit-test-result-action@34d7c956a59aed1bfebf31df77b8de55db9bbaaf
273+
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040
274274
if: always() && matrix.runner-os == 'ubuntu-latest' && github.actor != 'dependabot[bot]'
275275
with:
276276
files: "**/*-tests.xml"
@@ -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

.github/workflows/integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ jobs:
204204

205205
- name: Publish Integration Test Results
206206
# 6e8f8c55b476f977d1c58cfbd7e337cbf86d917f is tag v2, pinned to avoid supply chain attacks
207-
uses: EnricoMi/publish-unit-test-result-action@34d7c956a59aed1bfebf31df77b8de55db9bbaaf
207+
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040
208208
if: always() && matrix.runner-os == 'ubuntu-latest'
209209
with:
210210
files: "**/*-tests.xml"

.github/workflows/publish-test-results.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
echo "PR_NUMBER=$sanitized_prnumber" >> "$GITHUB_ENV"
4141
- name: Publish Unit Test Results
4242
# 6e8f8c55b476f977d1c58cfbd7e337cbf86d917f is tag v2, pinned to avoid supply chain attacks
43-
uses: EnricoMi/publish-unit-test-result-action@34d7c956a59aed1bfebf31df77b8de55db9bbaaf
43+
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040
4444
with:
4545
commit: ${{ github.event.workflow_run.head_sha }}
4646
event_file: artifacts/Event File/event.json

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)