From 25b5b77240c94d3a28ae9aa7bcef36afb19b00c2 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Wed, 24 Jul 2019 19:02:10 -0700 Subject: [PATCH] Add automated linux-aarch64 build --- .prepare_deploy | 8 ++++++++ .travis.yml | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/.prepare_deploy b/.prepare_deploy index dcf0346..fd11fb1 100755 --- a/.prepare_deploy +++ b/.prepare_deploy @@ -35,6 +35,14 @@ do rm "shellcheck" done +for file in *.linux-aarch64 +do + base="${file%.*}" + cp "$file" "shellcheck" + tar -cJf "$base.linux.aarch64.tar.xz" --transform="s:^:$base/:" README.txt LICENSE.txt shellcheck + rm "shellcheck" +done + for file in *.linux-armv6hf do base="${file%.*}" diff --git a/.travis.yml b/.travis.yml index 8a86307..e921a5f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,8 @@ script: - mkdir deploy # Remove all tests to reduce binary size - ./striptests + # Start fetching the aarch64 image since it's a multi-GB beast + - docker pull koalaman/aarch64-builder >> aarch64pull.log 2>&1 & # Linux Docker image - name="$DOCKER_BASE" - DOCKER_BUILDS="$DOCKER_BUILDS $name" @@ -37,6 +39,11 @@ script: - sed -e '/DELETE-MARKER/,$d' Dockerfile > Dockerfile.alpine - docker build -f Dockerfile.alpine -t "$name:current" . - docker run "$name:current" sh -c 'shellcheck --version' + # Linux aarch64 static executable + - wait + - docker run -v "$PWD:/mnt" koalaman/aarch64-builder 'buildsc' + - for tag in $TAGS; do cp "shellcheck" "deploy/shellcheck-$tag.linux-aarch64"; done + - rm -f shellcheck || true # Linux armv6hf static executable - docker run -v "$PWD:/mnt" koalaman/armv6hf-builder -c 'compile-shellcheck' - for tag in $TAGS; do cp "shellcheck" "deploy/shellcheck-$tag.linux-armv6hf"; done