Skip to content

Commit

Permalink
Enable line tables for CI Rust artifacts
Browse files Browse the repository at this point in the history
With debug information completely disabled in CI, we lack potentially
important source code line information should a test panic and we see a
backtrace.
To make it easier to debug such problems when only a backtrace is
available, include line tables in the Rust artifacts so that we also see
source code file names and line numbers.
  • Loading branch information
d-e-s-o committed Sep 23, 2024
1 parent 6fcc032 commit 84a6123
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ on:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
# Build without debug information enabled to decrease compilation time
# and binary sizes in CI. This option is assumed to only have marginal
# effects on the generated code, likely only in terms of section
# arrangement. See
# Build with only line information enabled to decrease compilation
# time and binary sizes in CI. This option is assumed to only have
# marginal effects on the generated code, likely only in terms of
# section arrangement. See
# https://doc.rust-lang.org/cargo/reference/environment-variables.html
# https://doc.rust-lang.org/rustc/codegen-options/index.html#debuginfo
RUSTFLAGS: '-C debuginfo=0'
RUSTFLAGS: '-C debuginfo=line-tables-only'

jobs:
build:
Expand Down

0 comments on commit 84a6123

Please sign in to comment.