summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreitsupi <50911393+eitsupi@users.noreply.github.com>2023-08-27 08:26:34 +0000
committerTom Milligan <tommilligan@users.noreply.github.com>2023-09-09 08:31:25 +0100
commitb658eb6049703f55630de3bbbe2b9e333ab44a0c (patch)
treeb2bf6722548f102a7aa1d06e1c491a80792f7c7b
parent623291625a66fb69cd5265ea2a3c99ff089dc40d (diff)
strip via Cargo
-rw-r--r--.github/workflows/deploy.yml2
-rw-r--r--Cargo.toml3
2 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 827f4af..dfc6dfb 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -78,7 +78,6 @@ jobs:
run: |
mkdir target/stage
cd target/${{ matrix.target }}/release
- strip ${{ env.CRATE_NAME }}.exe
7z a ../../stage/${{ env.CRATE_NAME }}-${{ steps.extract_tag.outputs.tag }}-${{ matrix.name }} ${{ env.CRATE_NAME }}.exe
cd -
- name: Post Setup | Prepare artifacts [-nix]
@@ -86,7 +85,6 @@ jobs:
run: |
mkdir target/stage
cd target/${{ matrix.target }}/release
- strip ${{ env.CRATE_NAME }}
tar czvf ../../stage/${{ env.CRATE_NAME }}-${{ steps.extract_tag.outputs.tag }}-${{ matrix.name }} ${{ env.CRATE_NAME }}
cd -
- name: Post Setup | Upload artifacts
diff --git a/Cargo.toml b/Cargo.toml
index 6e07c46..5e18731 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,6 +17,9 @@ name = "mdbook-admonish"
path = "src/bin/mdbook-admonish.rs"
required-features = ["cli"]
+[profile.release]
+strip = true
+
[lib]
name = "mdbook_admonish"
path = "src/lib.rs"