Skip to content

Commit

Permalink
Make build faster (#4362)
Browse files Browse the repository at this point in the history
### Description

- I disabled LTO for release builds. (Related:
rust-lang/cargo#9171)
We may need to revert these patches from CI

### Testing Instructions



---

fix WEB-812 ([link](https://linear.app/vercel/issue/WEB-812))
  • Loading branch information
kdy1 authored Jun 21, 2023
1 parent b5035b5 commit dd003fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/turborepo-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
name: Turborepo Release

env:
CARGO_PROFILE_RELEASE_LTO: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
RELEASE_TURBO_CLI: true # TODO: do we need this?

Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ opt-level = 3
[profile.dev.build-override]
opt-level = 3

[profile.release]
lto = "off"

# Declare dependencies used across workspace packages requires single version bump.
# ref: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#inheriting-a-dependency-from-a-workspace
[workspace.dependencies]
Expand Down

0 comments on commit dd003fd

Please sign in to comment.