Skip to content

Commit

Permalink
feat: install arm64 support (#76)
Browse files Browse the repository at this point in the history
* feat: install arm64 support

* ci: arm test

* ci: add arm test to workflow
  • Loading branch information
KyleTryon authored Aug 25, 2023
1 parent b563329 commit 27e7650
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,22 @@ jobs:
- run: go version && go build ./...
- go/save-cache:
key: "integration"
int-test-vm-arm64:
machine:
image: ubuntu-2204:2023.07.1
resource_class: arm.medium
steps:
- run:
name: "Check out sample project."
command: git clone https://github.com/CircleCI-Public/circleci-demo-go.git ~/project
- go/install:
version: 1.16.4
- go/load-cache:
key: "integration-arm"
- go/mod-download
- run: go version && go build ./...
- go/save-cache:
key: "integration-arm"
# test to make sure the dirty cache issue doesn't crop back up
int-test-dirty-cache:
machine:
Expand Down Expand Up @@ -107,6 +123,8 @@ workflows:
filters: *filters
- int-test-dirty-cache:
filters: *filters
- int-test-vm-arm64:
filters: *filters
- orb-tools/pack:
filters: *filters
- orb-tools/publish:
Expand All @@ -121,6 +139,7 @@ workflows:
- int-test-macos-executor
- int-test-vm-linux
- int-test-dirty-cache
- int-test-vm-arm64
context: orb-publisher
filters:
branches:
Expand Down
1 change: 1 addition & 0 deletions src/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
: "${OSD_FAMILY:="linux"}"
: "${HOSTTYPE:="amd64"}"
if [ "${HOSTTYPE}" = "x86_64" ]; then HOSTTYPE="amd64"; fi
if [ "${HOSTTYPE}" = "aarch64" ]; then HOSTTYPE="arm64"; fi
case "${HOSTTYPE}" in *86 ) HOSTTYPE=i386 ;; esac

if command -v go >/dev/null; then
Expand Down

0 comments on commit 27e7650

Please sign in to comment.