Add automated linux-aarch64 build

This commit is contained in:
Vidar Holen 2019-07-24 19:02:10 -07:00
parent 38bb156a1c
commit 25b5b77240
2 changed files with 15 additions and 0 deletions

View File

@ -35,6 +35,14 @@ do
rm "shellcheck" rm "shellcheck"
done 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 for file in *.linux-armv6hf
do do
base="${file%.*}" base="${file%.*}"

View File

@ -17,6 +17,8 @@ script:
- mkdir deploy - mkdir deploy
# Remove all tests to reduce binary size # Remove all tests to reduce binary size
- ./striptests - ./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 # Linux Docker image
- name="$DOCKER_BASE" - name="$DOCKER_BASE"
- DOCKER_BUILDS="$DOCKER_BUILDS $name" - DOCKER_BUILDS="$DOCKER_BUILDS $name"
@ -37,6 +39,11 @@ script:
- sed -e '/DELETE-MARKER/,$d' Dockerfile > Dockerfile.alpine - sed -e '/DELETE-MARKER/,$d' Dockerfile > Dockerfile.alpine
- docker build -f Dockerfile.alpine -t "$name:current" . - docker build -f Dockerfile.alpine -t "$name:current" .
- docker run "$name:current" sh -c 'shellcheck --version' - 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 # Linux armv6hf static executable
- docker run -v "$PWD:/mnt" koalaman/armv6hf-builder -c 'compile-shellcheck' - docker run -v "$PWD:/mnt" koalaman/armv6hf-builder -c 'compile-shellcheck'
- for tag in $TAGS; do cp "shellcheck" "deploy/shellcheck-$tag.linux-armv6hf"; done - for tag in $TAGS; do cp "shellcheck" "deploy/shellcheck-$tag.linux-armv6hf"; done