Skip to content

Commit

Permalink
Update CI and release profile settings for speed and efficiency. (#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi authored Jan 28, 2025
1 parent 8b6470c commit e351377
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ concurrency:
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0

jobs:
build-and-upload-binary:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CARGO_TERM_VERBOSE: 'true'
# 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
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ concurrency:
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0

jobs:
create-release:
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ debug-assertions = true
overflow-checks = true
codegen-units = 16

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

[features]
default = ["gix-reqwest"]

Expand Down

0 comments on commit e351377

Please sign in to comment.