arm64 build should be arm32 build
Convert arm64 build to arm32 build
@@ -35,10 +35,16 @@ jobs:
env: GOX_OS=linux
script:
- set -e
+ - sudo dpkg --add-architecture armhf
+ - sudo apt-get update -yq
+ - |-
+ sudo apt-get -yq install \
+ crossbuild-essential-armhf \
+ libc6:armhf
- pip install --upgrade --user pip
- pip install --user awscli
- go get github.com/mitchellh/gox
- - CGO_ENABLED=true gox -os="$GOX_OS" -arch=$TRAVIS_CPU_ARCH -output=$GOX_OUTPUT ./...
+ - CC=arm-linux-gnueabihf-gcc CGO_ENABLED=true gox -cgo -os="$GOX_OS" -arch=arm -output=$GOX_OUTPUT ./...
- aws s3 sync release/ s3://ziti-cmd-build-tmp/$TRAVIS_BUILD_ID
- stage: "Build and Test"
