Skip to content

Commit

Permalink
Fix OSArchitecture for osx-arm64 (#4528)
Browse files Browse the repository at this point in the history
* fix OSArchitecture for osx-arm64

* Update release assets to include MacOS ARM64 links

---------

Co-authored-by: Jaap Manenschijn <jaap.manenschijn@teamrockstars.nl>
  • Loading branch information
DenisRumyantsev and JaapManenschijn committed Nov 20, 2023
1 parent 4c5dad6 commit 4125f50
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
18 changes: 12 additions & 6 deletions assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@
"version": "<AGENT_VERSION>",
"downloadUrl": "https://vstsagentpackage.azureedge.net/agent/<AGENT_VERSION>/pipelines-agent-osx-x64-<AGENT_VERSION>.tar.gz"
},
{
"name": "vsts-agent-osx-arm64-<AGENT_VERSION>.tar.gz",
"platform": "osx-arm64",
"version": "<AGENT_VERSION>",
"downloadUrl": "https://vstsagentpackage.azureedge.net/agent/<AGENT_VERSION>/vsts-agent-osx-arm64-<AGENT_VERSION>.tar.gz"
},
{
"name": "pipelines-agent-osx-arm64-<AGENT_VERSION>.tar.gz",
"platform": "osx-arm64",
"version": "<AGENT_VERSION>",
"downloadUrl": "https://vstsagentpackage.azureedge.net/agent/<AGENT_VERSION>/pipelines-agent-osx-arm64-<AGENT_VERSION>.tar.gz"
},
{
"name": "vsts-agent-linux-x64-<AGENT_VERSION>.tar.gz",
"platform": "linux-x64",
Expand Down Expand Up @@ -76,11 +88,5 @@
"platform": "linux-musl-x64",
"version": "<AGENT_VERSION>",
"downloadUrl": "https://vstsagentpackage.azureedge.net/agent/<AGENT_VERSION>/vsts-agent-linux-musl-x64-<AGENT_VERSION>.tar.gz"
},
{
"name": "pipelines-agent-linux-musl-x64-<AGENT_VERSION>.tar.gz",
"platform": "linux-musl-x64",
"version": "<AGENT_VERSION>",
"downloadUrl": "https://vstsagentpackage.azureedge.net/agent/<AGENT_VERSION>/pipelines-agent-linux-musl-x64-<AGENT_VERSION>.tar.gz"
}
]
2 changes: 1 addition & 1 deletion releaseNote.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ See [notes](docs/node6.md) on Node version support for more details.
| Windows x64 | [pipelines-agent-win-x64-<AGENT_VERSION>.zip](https://vstsagentpackage.azureedge.net/agent/<AGENT_VERSION>/pipelines-agent-win-x64-<AGENT_VERSION>.zip) | <HASH> |
| Windows x86 | [pipelines-agent-win-x86-<AGENT_VERSION>.zip](https://vstsagentpackage.azureedge.net/agent/<AGENT_VERSION>/pipelines-agent-win-x86-<AGENT_VERSION>.zip) | <HASH> |
| macOS x64 | [pipelines-agent-osx-x64-<AGENT_VERSION>.tar.gz](https://vstsagentpackage.azureedge.net/agent/<AGENT_VERSION>/pipelines-agent-osx-x64-<AGENT_VERSION>.tar.gz) | <HASH> |
| macOS ARM64 | [pipelines-agent-osx-arm64-<AGENT_VERSION>.tar.gz](https://vstsagentpackage.azureedge.net/agent/<AGENT_VERSION>/pipelines-agent-osx-x64-<AGENT_VERSION>.tar.gz) | <HASH> |
| macOS ARM64 | [pipelines-agent-osx-arm64-<AGENT_VERSION>.tar.gz](https://vstsagentpackage.azureedge.net/agent/<AGENT_VERSION>/pipelines-agent-osx-arm64-<AGENT_VERSION>.tar.gz) | <HASH> |
| Linux x64 | [pipelines-agent-linux-x64-<AGENT_VERSION>.tar.gz](https://vstsagentpackage.azureedge.net/agent/<AGENT_VERSION>/pipelines-agent-linux-x64-<AGENT_VERSION>.tar.gz) | <HASH> |
| Linux ARM | [pipelines-agent-linux-arm-<AGENT_VERSION>.tar.gz](https://vstsagentpackage.azureedge.net/agent/<AGENT_VERSION>/pipelines-agent-linux-arm-<AGENT_VERSION>.tar.gz) | <HASH> |
| Linux ARM64 | [pipelines-agent-linux-arm64-<AGENT_VERSION>.tar.gz](https://vstsagentpackage.azureedge.net/agent/<AGENT_VERSION>/pipelines-agent-linux-arm64-<AGENT_VERSION>.tar.gz) | <HASH> |
5 changes: 4 additions & 1 deletion src/Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@
<OSArchitecture>X86</OSArchitecture>
</PropertyGroup>

<PropertyGroup Condition="'$(OSPlatform)' == 'OS_OSX'">
<PropertyGroup Condition="'$(OSPlatform)' == 'OS_OSX' AND '$(PackageRuntime)' == 'osx-x64'">
<OSArchitecture>X64</OSArchitecture>
</PropertyGroup>
<PropertyGroup Condition="'$(OSPlatform)' == 'OS_OSX' AND '$(PackageRuntime)' == 'osx-arm64'">
<OSArchitecture>ARM64</OSArchitecture>
</PropertyGroup>

<PropertyGroup Condition="'$(OSPlatform)' == 'OS_LINUX' AND '$(PackageRuntime)' == 'linux-x64'">
<OSArchitecture>X64</OSArchitecture>
Expand Down
2 changes: 1 addition & 1 deletion src/Misc/Publish.template.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$ErrorActionPreference = 'Stop'

if ($pwd -notlike '*tfsgheus20' ) {
if ($pwd -notlike '*tfsgheus20') {

# primary packages

Expand Down

0 comments on commit 4125f50

Please sign in to comment.