From b42790344c2cb3604855e8a2d0d87f5c90c5346f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksandar=20Topuzovi=C4=87?= Date: Tue, 18 Feb 2020 16:33:47 +0000 Subject: [PATCH] Add 64-bit ARM (aarch64) build (#275) --- .github/workflows/backend.yml | 2 +- .github/workflows/release.yml | 2 +- scripts/cross-build.sh | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 7639cf5..7c49f4f 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -42,7 +42,7 @@ jobs: runs-on: ubuntu-16.04 strategy: matrix: - arch: [i386, x86_64, arm, armhf, mips, mipsel] + arch: [i386, x86_64, arm, armhf, aarch64, mips, mipsel] steps: - uses: actions/checkout@v1 - name: Cross build (${{ matrix.arch }}) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 111e929..72f8d0b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: - name: Build Release run: | mkdir -p bin - for arch in i386 x86_64 arm armhf mips mipsel; do + for arch in i386 x86_64 arm armhf aarch64 mips mipsel; do docker run --rm -v $(pwd):/ttyd -w /ttyd tsl0922/musl-cross ./scripts/cross-build.sh $arch cp build/ttyd bin/ttyd_linux.$arch sha256sum bin/ttyd_linux.$arch >> bin/SHA256SUMS diff --git a/scripts/cross-build.sh b/scripts/cross-build.sh index 597d58d..eab0dfd 100755 --- a/scripts/cross-build.sh +++ b/scripts/cross-build.sh @@ -125,7 +125,7 @@ build() { } case $1 in - i386|x86_64|mips|mipsel) + i386|x86_64|aarch64|mips|mipsel) build $1-linux-musl $1 ;; arm) @@ -135,6 +135,5 @@ case $1 in build arm-linux-musleabihf $1 ;; *) - echo "usage: $0 i386|x86_64|arm|armhf|mips|mipsel" && exit 1 + echo "usage: $0 i386|x86_64|arm|armhf|aarch64|mips|mipsel" && exit 1 esac - -- 2.43.4