Skip to content

Commit

Permalink
Set cargo env vars and manifest config for faster CI builds. (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi authored Jan 28, 2025
1 parent 622f42d commit d6665ef
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ concurrency:
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
# The below settings are based on advice from:
# https://corrode.dev/blog/tips-for-faster-ci-builds/
CARGO_INCREMENTAL: 0
CARGO_PROFILE_TEST_DEBUG: 0

jobs:
ci-everything:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ concurrency:
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
# The below settings are based on advice from:
# https://corrode.dev/blog/tips-for-faster-ci-builds/
CARGO_INCREMENTAL: 0
CARGO_PROFILE_TEST_DEBUG: 0

jobs:
tag:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ concurrency:
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
# The below settings are based on advice from:
# https://corrode.dev/blog/tips-for-faster-ci-builds/
CARGO_INCREMENTAL: 0
CARGO_PROFILE_TEST_DEBUG: 0

jobs:
publish:
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ quote = "1.0"
proc-macro2 = "1.0.51"
globset = "0.4.6"
walkdir = "2.3.1"

[profile.release]
lto = true
codegen-units = 1

0 comments on commit d6665ef

Please sign in to comment.