Skip to content

Commit 6550dae

Browse files
committed
First attempt building for Apple Silicon.
1 parent 5112269 commit 6550dae

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
sys:
4141
- {os: ubuntu-latest}
4242
- {os: macos-13, shell: zsh}
43+
- {os: macos-latest, shell: zsh}
4344
- {os: windows-2019}
4445
- {os: ubuntu-24.04-arm}
4546
fail-fast: false
@@ -523,6 +524,7 @@ jobs:
523524
with:
524525
name: |
525526
session-build-ubuntu-latest
526-
session-build-macos-11
527+
session-build-macos-13
528+
session-build-macos-latest
527529
session-build-windows-2019
528530
session-build-ubuntu-24.04-arm

activestate.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ constants:
3939
export CGO_ENABLED=0
4040
PATH="${GOROOT}/bin:${GOPATH}/bin:${PATH}"
4141
BUILD_EXEC_TARGET=$constants.BUILD_EXEC_TARGET
42-
43-
# add the GOARCH as infix to BUILD_TARGET_DIR if not amd64
44-
BUILD_TARGET_DIR=$constants.BUILD_TARGET_PREFIX_DIR/${GOARCH#amd64}
42+
BUILD_TARGET_DIR=$constants.BUILD_TARGET_PREFIX_DIR/
4543
- name: SCRIPT_EXT
4644
if: ne .OS.Name "Windows"
4745
value: .sh
@@ -245,7 +243,7 @@ scripts:
245243
GOOS=windows go build -o .github/deps/Windows/amd64/bin/parallelize.exe github.com/ActiveState/cli/scripts/ci/parallelize/
246244
GOOS=linux go build -o .github/deps/Linux/amd64/bin/parallelize github.com/ActiveState/cli/scripts/ci/parallelize/
247245
GOOS=linux GOARCH=arm64 go build -o .github/deps/Linux/arm64/bin/parallelize github.com/ActiveState/cli/scripts/ci/parallelize/
248-
GOOS=darwin go build -o .github/deps/macOS/amd64/bin/parallelize github.com/ActiveState/cli/scripts/ci/parallelize/
246+
GOOS=darwin GOARCH=amd64 go build -o .github/deps/macOS/amd64/bin/parallelize github.com/ActiveState/cli/scripts/ci/parallelize/
249247
- name: test
250248
language: bash
251249
standalone: true

installers/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ Linux)
8282
Darwin)
8383
OS="darwin"
8484
ARCH="amd64"
85+
arch="`uname -m`"
86+
if [ $arch = "arm64" ]; then ARCH="arm64"; fi
8587
DOWNLOADEXT=".tar.gz"
8688
SHA256SUM="shasum -a 256"
8789
;;

test/integration/upgen_int_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ func (suite *UpdateGenIntegrationTestSuite) TestUpdateBits() {
3030
ext = ".zip"
3131
}
3232
hostArch := runtime.GOARCH
33-
if runtime.GOOS == "darwin" && hostArch == "arm64" {
34-
hostArch = "amd64"
35-
}
3633
platform := runtime.GOOS + "-" + hostArch
3734

3835
archivePath := filepath.Join(root, "build/update", constants.ChannelName, constants.VersionNumber, platform, fmt.Sprintf("state-%s-%s%s", platform, constants.Version, ext))

0 commit comments

Comments
 (0)