Skip to content

Commit

Permalink
build: debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
gurinderu committed Feb 10, 2023
1 parent 6c17592 commit db73537
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ jobs:
publish: false

- name: Run cargo build
run: cargo build --release -p particle-node
run: cargo build --profile release-with-debug -p particle-node

- name: Calculate SHA256
id: sha
working-directory: ./target/release
working-directory: ./target/release-with-debug
run: |
# Calculate sha256
du -hs particle-node
Expand All @@ -75,7 +75,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: rust-peer
path: target/release/particle-node
path: target/release-with-debug/particle-node

container:
needs: build
Expand Down
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,9 @@ debug-assertions = false
strip = true
lto = false
codegen-units = 1 # Reduce number of codegen units to increase optimizations

[profile.release-with-debug]
inherits = "release"
debug = true
strip = false
lto = false

0 comments on commit db73537

Please sign in to comment.