diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7fcdf1..8f3efd4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index a49c31c..f946a01 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,3 +23,5 @@ v_htmlescape = "0.14.1" opt-level = 'z' lto = true panic = 'abort' +strip = true +codegen-units = 1