cargo.toml profiles support strip = true
so use that in the release profile, no need to run the explicit strip command now also `codegen-units = 1` for more optimizations
This commit is contained in:
parent
84599e5d82
commit
0deb014225
2 changed files with 5 additions and 5 deletions
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
@ -25,15 +25,13 @@ jobs:
|
|||
asset_name: http-server-$tag-windows.zip
|
||||
zipcmd: 7z a -tzip
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Build project
|
||||
run: cargo build --release --locked
|
||||
|
||||
- name: Post-build release preparation
|
||||
run: |
|
||||
strip target/release/${{ matrix.artifact_name }}
|
||||
${{ matrix.zipcmd}} release.zip target/release/${{ matrix.artifact_name }}
|
||||
- name: make release.zip
|
||||
run: ${{ matrix.zipcmd}} release.zip target/release/${{ matrix.artifact_name }}
|
||||
|
||||
- name: Upload binary to release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
|
|
|
@ -23,3 +23,5 @@ v_htmlescape = "0.14.1"
|
|||
opt-level = 'z'
|
||||
lto = true
|
||||
panic = 'abort'
|
||||
strip = true
|
||||
codegen-units = 1
|
||||
|
|
Loading…
Add table
Reference in a new issue