Skip to content

Commit fe93ba9

Browse files
committed
Add LTO test
1 parent fe608c7 commit fe93ba9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ jobs:
5757
cargo test
5858
./y.sh clean all
5959
60+
- name: Run y.sh cargo build
61+
run: |
62+
./y.sh cargo build --release --manifest-path tests/hello-world/Cargo.toml
63+
6064
- name: Prepare dependencies
6165
run: |
6266
git config --global user.email "[email protected]"

tests/hello-world/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ mylib = { path = "mylib" }
77

88
[profile.dev]
99
lto = "thin"
10+
11+
[profile.release]
12+
lto = "fat"

0 commit comments

Comments
 (0)