Skip to content

Commit

Permalink
Unoptimize the build (paritytech#340)
Browse files Browse the repository at this point in the history
* Set 'opt-level = 0' for release builds

* Use 'opt-level = 3' in CI
  • Loading branch information
notlesh authored Apr 12, 2021
1 parent 3f893f1 commit e164307
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
run: |
echo "::set-output name=rustc::$(rustc --version)"
- name: Build Node
run: cargo build --release --verbose --all
run: RUSTFLAGS="-C opt-level=3" cargo build --release --verbose --all
# We determine whether there are unmodified Cargo.lock files by:
# 1. Asking git for a list of all modified files
# 2. Using grep to reduce the list to only Cargo.lock files
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ members = [

[profile.release]
panic = 'unwind'
opt-level = 0

0 comments on commit e164307

Please sign in to comment.