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
|
asset_name: http-server-$tag-windows.zip
|
||||||
zipcmd: 7z a -tzip
|
zipcmd: 7z a -tzip
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: cargo build --release --locked
|
run: cargo build --release --locked
|
||||||
|
|
||||||
- name: Post-build release preparation
|
- name: make release.zip
|
||||||
run: |
|
run: ${{ matrix.zipcmd}} release.zip target/release/${{ matrix.artifact_name }}
|
||||||
strip target/release/${{ matrix.artifact_name }}
|
|
||||||
${{ matrix.zipcmd}} release.zip target/release/${{ matrix.artifact_name }}
|
|
||||||
|
|
||||||
- name: Upload binary to release
|
- name: Upload binary to release
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
|
|
@ -23,3 +23,5 @@ v_htmlescape = "0.14.1"
|
||||||
opt-level = 'z'
|
opt-level = 'z'
|
||||||
lto = true
|
lto = true
|
||||||
panic = 'abort'
|
panic = 'abort'
|
||||||
|
strip = true
|
||||||
|
codegen-units = 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue