Skip to content

Commit

Permalink
Merge pull request #507 from R3DRUN3/main
Browse files Browse the repository at this point in the history
ci(release): add osx x64 arch
  • Loading branch information
waelkdouh authored Mar 19, 2024
2 parents c36a7f7 + 3ecbc07 commit 7b01129
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/create_github_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
name: Generate extractor artifacts
strategy:
matrix:
dotnet-runtime: [linux-x64, linux-arm64, win-x64, osx-arm64]
dotnet-runtime: [linux-x64, linux-arm64, win-x64, osx-arm64, osx-x64]
# Dynamically set the runner OS based on the .NET runtime
runs-on: ${{ fromJSON('{"linux-x64":"ubuntu-latest", "linux-arm64":"ubuntu-latest", "win-x64":"windows-latest", "osx-arm64":"macos-latest"}')[matrix.dotnet-runtime] }}
runs-on: ${{ fromJSON('{"linux-x64":"ubuntu-latest", "linux-arm64":"ubuntu-latest", "win-x64":"windows-latest", "osx-arm64":"macos-latest", "osx-x64":"macos-latest"}')[matrix.dotnet-runtime] }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -59,9 +59,9 @@ jobs:
name: Generate publisher artifacts
strategy:
matrix:
dotnet-runtime: [linux-x64, linux-arm64, win-x64, osx-arm64]
dotnet-runtime: [linux-x64, linux-arm64, win-x64, osx-arm64, osx-x64]
# Dynamically set the runner OS based on the .NET runtime
runs-on: ${{ fromJSON('{"linux-x64":"ubuntu-latest", "linux-arm64":"ubuntu-latest", "win-x64":"windows-latest", "osx-arm64":"macos-latest"}')[matrix.dotnet-runtime] }}
runs-on: ${{ fromJSON('{"linux-x64":"ubuntu-latest", "linux-arm64":"ubuntu-latest", "win-x64":"windows-latest", "osx-arm64":"macos-latest", "osx-x64":"macos-latest"}')[matrix.dotnet-runtime] }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -236,10 +236,12 @@ jobs:
${{github.workspace}}/artifact/extractor.linux-x64
${{github.workspace}}/artifact/extractor.linux-arm64
${{github.workspace}}/artifact/extractor.osx-arm64
${{github.workspace}}/artifact/extractor.osx-x64
${{github.workspace}}/artifact/publisher.win-x64.exe
${{github.workspace}}/artifact/publisher.linux-x64
${{github.workspace}}/artifact/publisher.linux-arm64
${{github.workspace}}/artifact/publisher.osx-arm64
${{github.workspace}}/artifact/publisher.osx-x64
${{github.workspace}}/artifact/Github.zip
${{github.workspace}}/artifact/Azure_DevOps.zip
name: APIOps Toolkit for Azure APIM ${{ github.event.inputs.Release_Version }}
Expand Down
3 changes: 3 additions & 0 deletions tools/azdo_pipelines/run-extractor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ stages:
elseif ("$(Agent.OS)" -like "*mac*" -and "$(Agent.OSArchitecture)" -like "*arm*") {
$extractorFileName = "extractor.osx-arm64"
}
elseif ("$(Agent.OS)" -like "*mac*" -and "$(Agent.OSArchitecture)" -like "*x86_64*") {
$extractorFileName = "extractor.osx-x64"
}
$uri = "https://github.com/Azure/apiops/releases/download/$(apiops_release_version)/$extractorFileName"
$destinationFilePath = Join-Path "$(Agent.TempDirectory)" $extractorFinalFileName
Expand Down
3 changes: 3 additions & 0 deletions tools/azdo_pipelines/run-publisher-with-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ steps:
elseif ("$(Agent.OS)" -like "*mac*" -and "$(Agent.OSArchitecture)" -like "*arm*") {
$publisherFileName = "publisher.osx-arm64"
}
elseif ("$(Agent.OS)" -like "*mac*" -and "$(Agent.OSArchitecture)" -like "*x86_64*") {
$publisherFileName = "publisher.osx-x64"
}
$uri = "https://github.com/Azure/apiops/releases/download/$(apiops_release_version)/$publisherFileName"
$destinationFilePath = Join-Path "$(Agent.TempDirectory)" $publisherFinalFileName
Expand Down
3 changes: 3 additions & 0 deletions tools/github_workflows/run-extractor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
elseif ("${{ runner.os }}" -like "*mac*" -and "${{ runner.arch }}" -like "*arm*") {
$extractorFileName = "extractor.osx-arm64"
}
elseif ("${{ runner.os }}" -like "*mac*" -and "${{ runner.arch }}" -like "*x86_64*") {
$extractorFileName = "extractor.osx-x64"
}
$uri = "https://github.com/Azure/apiops/releases/download/${{ env.apiops_release_version }}/$extractorFileName"
$destinationFilePath = Join-Path "${{ runner.temp }}" $extractorFinalFileName
Expand Down
12 changes: 12 additions & 0 deletions tools/github_workflows/run-publisher-with-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ jobs:
elseif ("${{ runner.os }}" -like "*mac*" -and "${{ runner.arch }}" -like "*arm*") {
$publisherFileName = "publisher.osx-arm64"
}
elseif ("${{ runner.os }}" -like "*mac*" -and "${{ runner.arch }}" -like "*x86_64*") {
$publisherFileName = "publisher.osx-x64"
}
$uri = "https://github.com/Azure/apiops/releases/download/${{ env.apiops_release_version }}/$publisherFileName"
$destinationFilePath = Join-Path "${{ runner.temp }}" $publisherFinalFileName
Expand Down Expand Up @@ -122,6 +125,9 @@ jobs:
elseif("${{ runner.os }}" -like "*mac*" -and "${{ runner.arch }}" -like "*arm*"){
$publisherFileName = "publisher.osx-arm64"
}
elseif ("${{ runner.os }}" -like "*mac*" -and "${{ runner.arch }}" -like "*x86_64*") {
$publisherFileName = "publisher.osx-x64"
}
$uri = "https://github.com/Azure/apiops/releases/download/${{ env.apiops_release_version }}/$publisherFileName"
$destinationFilePath = Join-Path "${{ runner.temp }}" $publisherFinalFileName
Expand Down Expand Up @@ -168,6 +174,9 @@ jobs:
elseif("${{ runner.os }}" -like "*mac*" -and "${{ runner.arch }}" -like "*arm*"){
$publisherFileName = "publisher.osx-arm64"
}
elseif ("${{ runner.os }}" -like "*mac*" -and "${{ runner.arch }}" -like "*x86_64*") {
$publisherFileName = "publisher.osx-x64"
}
$uri = "https://github.com/Azure/apiops/releases/download/${{ env.apiops_release_version }}/$publisherFileName"
$destinationFilePath = Join-Path "${{ runner.temp }}" $publisherFinalFileName
Expand Down Expand Up @@ -213,6 +222,9 @@ jobs:
elseif("${{ runner.os }}" -like "*mac*" -and "${{ runner.arch }}" -like "*arm*"){
$publisherFileName = "publisher.osx-arm64"
}
elseif ("${{ runner.os }}" -like "*mac*" -and "${{ runner.arch }}" -like "*x86_64*") {
$publisherFileName = "publisher.osx-x64"
}
$uri = "https://github.com/Azure/apiops/releases/download/${{ env.apiops_release_version }}/$publisherFileName"
$destinationFilePath = Join-Path "${{ runner.temp }}" $publisherFinalFileName
Expand Down

0 comments on commit 7b01129

Please sign in to comment.