Skip to content

Commit

Permalink
feat: Add strip and upx to windows/mac
Browse files Browse the repository at this point in the history
  • Loading branch information
lynzrand committed Oct 17, 2020
1 parent 7bf9258 commit 107178a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,22 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v1

- name: Install UPX on Windows
if: ${{matrix.os == 'windows-latest'}}
run: choco install upx

- name: Install UPX on MacOS
if: ${{matrix.os == 'macos-latest'}}
run: brew install upx

- name: Build
run: cargo build --release --locked

- name: compress
run: |
strip -s ./target/release/${{ matrix.artifact_name }}
upx -9 --lzma ./target/release/${{ matrix.artifact_name }}
- name: Zip
run: tar czvf ${{ matrix.asset_name }}.tar.gz -C ./target/release/ ${{ matrix.artifact_name }}

Expand Down

0 comments on commit 107178a

Please sign in to comment.