Skip to content

Commit

Permalink
Merge pull request #1112 from rust-lang/debuginfo
Browse files Browse the repository at this point in the history
Build the backend service with debug symbols
  • Loading branch information
shepmaster authored Oct 21, 2024
2 parents 3e28805 + cde381d commit c4d00b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Configure node
uses: actions/setup-node@v4
with:
node-version: 18.14
node-version: 22.2
- name: Get pnpm version from package.json
id: pnpm-version
run: 'echo "pnpm_version=$(node -p ''require(`./ui/frontend/package.json`).engines.pnpm'')" >> $GITHUB_OUTPUT
Expand Down
8 changes: 8 additions & 0 deletions ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ RUN \
test_bin=$(find target/debug/deps/ -name "ui*" -type f -perm -a=x); \
mv "${test_bin}" /output/unit_tests_ui;

# Bake in debug information to debug deadlocks in production
RUN mkdir .cargo
RUN cat <<EOF >.cargo/config.toml
[profile.release]
debug = "full"
split-debuginfo = "off"
EOF

RUN \
cargo rustc --locked --release -- -C relocation-model=static; \
mv target/release/ui /output/ui;

0 comments on commit c4d00b9

Please sign in to comment.