ci: use upx compress /usr/bin/openlist with LZMA (--best)
Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
parent
9617c1ff2e
commit
51b4b7a98b
9
.github/workflows/release-build.yml
vendored
9
.github/workflows/release-build.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Build
|
name: Build Packages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -58,7 +58,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sed -i '/golang-package/a \\tGO_PKG_DEFAULT_LDFLAGS:=-w -s -extldflags "-static"' openlist/Makefile
|
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
|
uses: sbwml/openwrt-gh-action-sdk@go1.25
|
||||||
env:
|
env:
|
||||||
ARCH: ${{ matrix.arch }}-${{ matrix.sdk }}
|
ARCH: ${{ matrix.arch }}-${{ matrix.sdk }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user