Skip to content

Commit

Permalink
update strip on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
lynzrand committed Oct 17, 2020
1 parent 107178a commit e8b6cf1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,18 @@ jobs:
- name: Build
run: cargo build --release --locked

- name: compress
- name: compress (windows)
if: ${{matrix.os == 'windows-latest'}}
run: |
strip -s ./target/release/${{ matrix.artifact_name }}
upx -9 --lzma ./target/release/${{ matrix.artifact_name }}
- name: compress (macos)
if: ${{matrix.os == 'macos-latest'}}
run: |
strip ./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 e8b6cf1

Please sign in to comment.