From 542631ee5e74aacf63c0d62546df41117580a997 Mon Sep 17 00:00:00 2001 From: moond4rk Date: Sun, 8 Nov 2020 01:34:41 +0800 Subject: [PATCH] add upx to github action workflow --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 925c73a..ecc3bca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,14 +15,17 @@ jobs: - os: windows-latest goos: windows bin: 'hack-browser-data.exe' + args: -9 releaseos: windows - os: macos-latest goos: darwin bin: 'hack-browser-data' + args: -9 releaseos: osx - os: ubuntu-latest goos: linux bin: 'hack-browser-data' + args: -9 releaseos: linux exclude: - os: macos-latest @@ -47,6 +50,10 @@ jobs: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.arch }} CGO_ENABLED: 1 + - uses: svenstaro/upx-action@v2 + with: + args: ${{ matrix.args }} + file: ${{ matrix.bin }} - name: Upload to artifacts uses: actions/upload-artifact@v2 with: