In order to support building for Linux on ARM64/aarch64 (64bit) we could easily cross compile Docker Machine. In Go we use "linux/arm64", but on Linux the architecture is called "aarch64" which can be determined with `uname -m`. Testing a build locally within Docker and only compile an ARM64 binary is easy with this command: ``` USE_CONTAINER=true TARGET_OS=linux TARGET_ARCH=arm64 make build-x ``` It builds the binary `./bin/docker-machine-Linux-aarch64`. Signed-off-by: Dieter Reuter <dieter.reuter@me.com>
15 lines
490 B
YAML
15 lines
490 B
YAML
sudo: required
|
|
dist: trusty
|
|
language: bash
|
|
services: docker
|
|
env:
|
|
matrix:
|
|
- TARGET_OS=linux TARGET_ARCH=amd64 TARGETS="build validate"
|
|
- TARGET_OS=darwin TARGET_ARCH=amd64 TARGETS="build-x"
|
|
- TARGET_OS=windows TARGET_ARCH=amd64 TARGETS="build-x"
|
|
- TARGET_OS=linux TARGET_ARCH=arm TARGETS="build-x"
|
|
- TARGET_OS=linux TARGET_ARCH=arm64 TARGETS="build-x"
|
|
script:
|
|
- USE_CONTAINER=true make "$TARGETS"
|
|
- "[[ \"$(find bin -type f -name docker-machine*)\" != \"\" ]]"
|