From bbd9f29a67d656ccda8f454118a88248d20951c0 Mon Sep 17 00:00:00 2001 From: spvkgn Date: Tue, 10 Sep 2024 13:20:41 +0500 Subject: [PATCH] CI: add armv7 static build --- .github/workflows/build-ci.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 64cf6ba..fc118aa 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -44,7 +44,7 @@ jobs: strategy: matrix: # arch: [x86_64, x86, aarch64, armhf, armv7, ppc64le, s390x] - arch: [x86_64, x86, aarch64, armhf] + arch: [x86_64, x86, aarch64, armhf, armv7] branch: [latest-stable] steps: - name: Checkout @@ -77,7 +77,7 @@ jobs: shell: alpine.sh {0} run: | case $ARCH in - x86_64) PLATFORM=x86_64 ;; + x86_64) PLATFORM=x86-64 ;; x86) PLATFORM=x86 ;; aarch64) PLATFORM=arm64 ;; armhf) PLATFORM=arm ;; @@ -85,12 +85,8 @@ jobs: esac make -j$(nproc) CC="ccache gcc -static-libgcc -static" || exit 1 strip -s build/youtubeUnblock - rm -rf youtubeUnblock || true - mkdir youtubeUnblock - cp build/youtubeUnblock youtubeUnblock - cp youtubeUnblock.service youtubeUnblock - cp README.md youtubeUnblock - tar -czvf youtubeUnblock-$VERSION-$SHA-$PLATFORM-static.tar.gz youtubeUnblock + cp -va build/youtubeUnblock . + tar -czvf youtubeUnblock-$VERSION-$SHA-$PLATFORM-static.tar.gz youtubeUnblock youtubeUnblock.service README.md ccache --show-stats - name: Upload artifacts