Skip to content

Commit

Permalink
initial changes to build macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Jul 23, 2024
1 parent c484a5f commit 658f1a8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eng/pipeline/stages/go-builder-matrix-stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ stages:
- { experiment: cngcrypto, os: windows, arch: amd64, config: test, fips: true }
# Test that buildandpack works on Windows x86-32, but don't release it.
- { os: windows, hostArch: amd64, arch: 386, config: buildandpack }
- { os: macos, arch: amd64, config: devscript }
- { os: macos, arch: amd64, config: test }
- ${{ if parameters.outerloop }}:
# Upstream builders.
# - { os: linux, arch: amd64, config: clang } https://github.com/microsoft/go/issues/342
Expand Down
12 changes: 12 additions & 0 deletions eng/utilities.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ function Get-Stage0GoRoot() {
}
Default { throw "Unable to match Linux '$proc_arch' to an architecture supported by the Microsoft scripts to build Go." }
}
} elseif ($IsMacOS) {
switch ($proc_arch) {
'x64' {
$stage0_go_sha256 = '98a09c085b4c385abae7d35b9155195d5e584d14988347ac7f18e4cbe3b5ef3d'
$stage0_go_suffix = 'darwin-amd64.tar.gz'
}
'arm64' {
$stage0_go_sha256 = '1163be1998835a13f00dfc869a8e3cdebf86984ad41ff2fff43e35ac2a0d8344'
$stage0_go_suffix = 'darwin-arm64.tar.gz'
}
Default { throw "Unable to match macOS '$proc_arch' to an architecture supported by the Microsoft scripts to build Go." }
}
} else {
throw "Current OS/Platform is not supported by the Microsoft scripts to build Go."
}
Expand Down

0 comments on commit 658f1a8

Please sign in to comment.