Skip to content

Commit

Permalink
ci: move strip/lto to root cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Jan 21, 2025
1 parent a573d76 commit 88bebb7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ jobs:
run: |
echo "Editing imageflow_abi/Cargo.toml to replace the string \"[\"cdylib\"]\" with \"[\"staticlib\"]\""
sed -i 's/\["cdylib"\]/\["staticlib"\]/g' imageflow_abi/Cargo.toml
echo "Editing to remove all instances of '# enable on musl: '"
sed -i '/# enable on musl:/d' imageflow_abi/Cargo.toml
echo "Editing ./Cargo.toml to remove all instances of '# enable on musl: '"
sed -i '/# enable on musl:/d' ./Cargo.toml
echo "Finished editing imageflow_abi/Cargo.toml: "
cat imageflow_abi/Cargo.toml
# ----------------------------------------------------------------------------
Expand Down
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ resolver = "2"
[profile.release]
debug = true
split-debuginfo = "packed"


strip = true
lto = true
# enable on musl: strip = true
# enable on musl: lto = true

# RIAPI Tests take 600ms each at 0, 200ms each at 1, 36ms each at 2, 26ms each at 3
[profile.test]
Expand Down
4 changes: 0 additions & 4 deletions imageflow_abi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ doc = true
crate-type = ["staticlib"]
doctest = false

[profile.release]
# enable on musl: strip = true
# enable on musl: lto = true



[dependencies]
Expand Down

0 comments on commit 88bebb7

Please sign in to comment.