Skip to content

Commit

Permalink
add profile without incremental build
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Aug 20, 2024
1 parent 5f05390 commit e815614
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,14 @@ incremental = true
split-debuginfo = "packed"
lto = "off"

# Patch profile for production clusters.
# It will trade-off lto for faster build time.
[profile.patch-production]
debug = "full"
incremental = false
split-debuginfo = "packed"
lto = "off"

[profile.production]
inherits = "release"
incremental = false
Expand Down
2 changes: 1 addition & 1 deletion ci/workflows/docker-arm-fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ auto-retry: &auto-retry
steps:
- label: "docker-build-push: aarch64"
if: build.env("SKIP_TARGET_AARCH64") != "true"
command: "CARGO_PROFILE=release ci/scripts/docker.sh"
command: "CARGO_PROFILE=patch-production ci/scripts/docker.sh"
key: "build-aarch64"
plugins:
- seek-oss/aws-sm#v2.3.1:
Expand Down

0 comments on commit e815614

Please sign in to comment.