From 51b4b7a98b0ce64ab185d989dfa50458d7eb39c4 Mon Sep 17 00:00:00 2001 From: sbwml Date: Tue, 17 Jun 2025 15:46:03 +0800 Subject: [PATCH] ci: use upx compress /usr/bin/openlist with LZMA (--best) Signed-off-by: sbwml --- .github/workflows/release-build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 9de4ea5..09614ee 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -1,4 +1,4 @@ -name: Build +name: Build Packages on: push: @@ -58,7 +58,12 @@ jobs: run: | sed -i '/golang-package/a \\tGO_PKG_DEFAULT_LDFLAGS:=-w -s -extldflags "-static"' openlist/Makefile - - name: Build + - name: UPX Compress + if: ${{ matrix.arch != 'loongarch64_generic' && matrix.arch != 'mips64_mips64r2' && matrix.arch != 'mips64_octeonplus' && matrix.arch != 'mips64el_mips64r2' && matrix.arch != 'riscv64_riscv64' }} + run: | + sed -i '/INSTALL_DATA/a \\t/usr/bin/upx --lzma --best $(1)\/usr\/bin\/openlist' openlist/Makefile + + - name: Build Packages uses: sbwml/openwrt-gh-action-sdk@go1.25 env: ARCH: ${{ matrix.arch }}-${{ matrix.sdk }}