Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support arm cross compile #2923

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/archtype.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env bash

if [ ! -z "${GOHOSTARCH+x}" ]; then
echo "${GOHOSTARCH}"
exit 0
fi

ARCH=$(uname -m)

if [[ "${ARCH}" = "x86_64" ]]; then
Expand Down
5 changes: 5 additions & 0 deletions scripts/ostype.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env bash

if [ ! -z "${GOHOSTOS+x}" ]; then
echo "${GOHOSTOS}"
exit 0
fi

UNAME=$(uname)

if [ "${UNAME}" = "Darwin" ]; then
Expand Down
2 changes: 1 addition & 1 deletion test/muleCI/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@Library('go-algorand-ci') _

muleCI('test/muleCI/mule.yaml', '0.0.12')
muleCI('test/muleCI/mule.yaml', '0.0.23')
6 changes: 6 additions & 0 deletions test/muleCI/mule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ agents:
- NETWORK=$NETWORK
- VERSION=$VERSION
- BUILD_NUMBER=$BUILD_NUMBER
- GOHOSTARCH=amd64
buildArgs:
- GOLANG_VERSION=`./scripts/get_golang_version.sh`
- ARCH=amd64
Expand All @@ -22,6 +23,7 @@ agents:
- NETWORK=$NETWORK
- VERSION=$VERSION
- BUILD_NUMBER=$BUILD_NUMBER
- GOHOSTARCH=amd64
buildArgs:
- GOLANG_VERSION=`./scripts/get_golang_version.sh`
- ARCH=amd64
Expand All @@ -35,6 +37,7 @@ agents:
- NETWORK=$NETWORK
- VERSION=$VERSION
- BUILD_NUMBER=$BUILD_NUMBER
- GOHOSTARCH=arm64
buildArgs:
- GOLANG_VERSION=`./scripts/get_golang_version.sh`
- ARCH=arm64v8
Expand All @@ -48,6 +51,7 @@ agents:
- NETWORK=$NETWORK
- VERSION=$VERSION
- BUILD_NUMBER=$BUILD_NUMBER
- GOHOSTARCH=arm
buildArgs:
- GOLANG_VERSION=`./scripts/get_golang_version.sh`
- ARCH=arm32v6
Expand All @@ -60,6 +64,7 @@ agents:
- NETWORK=$NETWORK
- VERSION=$VERSION
- BUILD_NUMBER=$BUILD_NUMBER
- GOHOSTARCH=amd64
buildArgs:
- GOLANG_VERSION=`./scripts/get_golang_version.sh`
volumes:
Expand All @@ -73,6 +78,7 @@ agents:
- NETWORK=$NETWORK
- VERSION=$VERSION
- BUILD_NUMBER=$BUILD_NUMBER
- GOHOSTARCH=amd64
buildArgs:
- GOLANG_VERSION=`./scripts/get_golang_version.sh`
volumes:
Expand Down