Skip to content

Commit

Permalink
Build blazecli and blazesym-c in isolation in CI
Browse files Browse the repository at this point in the history
Be sure to build blazecli and blazesym-c in isolation, to prevent any
feature unification from messing up the result. Fix the blazecli build,
which broke because the program does not enable the gsym feature of
blazesym.

Signed-off-by: Daniel Müller <deso@posteo.net>
  • Loading branch information
d-e-s-o authored and danielocfb committed Jan 12, 2024
1 parent 7aba904 commit e936bed
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,23 @@ jobs:
# Make sure to build *without* `--workspace` or feature
# unification may mean that `--no-default-features` goes
# without effect.
args: "--no-default-features"
args: "--lib --no-default-features"
- runs-on: ubuntu-latest
rust: stable
profile: dev
args: "--no-default-features --features=apk"
args: "--lib --no-default-features --features=apk"
- runs-on: ubuntu-latest
rust: stable
profile: dev
args: "--no-default-features --features=gsym"
args: "--lib --no-default-features --features=gsym"
- runs-on: ubuntu-latest
rust: stable
profile: dev
args: "--package=blazecli"
- runs-on: ubuntu-latest
rust: stable
profile: dev
args: "--package=blazesym-c"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
Expand All @@ -47,7 +55,7 @@ jobs:
key: ${{ matrix.runs-on }}-${{ matrix.rust }}-${{ matrix.profile }}
- name: Build ${{ matrix.profile }}
run: |
cargo build --profile=${{ matrix.profile }} ${{ matrix.args }} --lib
cargo build --profile=${{ matrix.profile }} ${{ matrix.args }}
build-cross:
name: Cross-compile [${{ matrix.target }}]
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ grev = "0.1.3"

[dependencies]
anyhow = "1.0.68"
blazesym = {version = "=0.2.0-alpha.9", path = "../", features = ["tracing"]}
blazesym = {version = "=0.2.0-alpha.9", path = "../", features = ["apk", "demangle", "dwarf", "gsym", "tracing"]}
clap = {version = "4.1.7", features = ["derive"]}
clap_complete = {version = "4.1.1", optional = true}
tracing = "0.1"
Expand Down

0 comments on commit e936bed

Please sign in to comment.