From 9f112ce145f9980e11df462438d3f71269b8a0df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Fri, 18 Oct 2024 10:09:28 -0700 Subject: [PATCH] Test --- .github/workflows/test.yml | 30 ++++++++++++++++++++---------- Cargo.toml | 3 +++ 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 213e315a9..dc6ef1528 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,13 +26,13 @@ jobs: strategy: fail-fast: false matrix: - runs-on: [ubuntu-latest, macos-latest] + runs-on: [ubuntu-latest] rust: [stable] profile: [dev, release] # gsym-in-apk requires `blazesym-dev/generate-unit-test-files` # feature, which requires `llvm-gsymutil` installed. We don't # want that dependency in this large OS spanning matrix. - args: ["--workspace --exclude=gsym-in-apk"] + args: ["--workspace --exclude=blazesym-dev --exclude=gsym-in-apk"] include: - runs-on: ubuntu-latest rust: stable @@ -49,10 +49,10 @@ jobs: rust: stable profile: release args: "--lib --no-default-features" - - runs-on: windows-latest + - runs-on: macos-latest rust: stable - profile: dev - args: "--tests --features=blazesym-dev/dont-generate-unit-test-files" + profile: release + args: "--lib --no-default-features" - runs-on: ubuntu-latest rust: stable profile: dev @@ -135,10 +135,10 @@ jobs: env: LLVM_GSYMUTIL: /usr/bin/llvm-gsymutil-14 steps: + - name: Install required tools + run: sudo apt-get install -y llvm-14 libelf-dev zlib1g-dev - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly - - name: Install required tools - run: sudo apt-get install -y llvm-14 - name: Check incremental rebuilds env: CARGO_OPTS: --workspace --quiet --tests @@ -157,6 +157,8 @@ jobs: env: LLVM_GSYMUTIL: /usr/bin/llvm-gsymutil-14 steps: + - name: Install required tools + run: sudo apt-get install -y llvm-14 libelf-dev zlib1g-dev - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly - uses: Swatinem/rust-cache@v2 @@ -164,8 +166,6 @@ jobs: id: py312 with: python-version: '3.12' - - name: Install required tools - run: sudo apt-get install -y llvm-14 - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - name: Install llvm-tools-preview @@ -277,6 +277,8 @@ jobs: env: LLVM_GSYMUTIL: /usr/bin/llvm-gsymutil-14 steps: + - name: Install development dependencies + run: sudo apt-get install -y libelf-dev zlib1g-dev - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly - uses: Swatinem/rust-cache@v2 @@ -303,6 +305,8 @@ jobs: env: LLVM_GSYMUTIL: /usr/bin/llvm-gsymutil-14 steps: + - name: Install development dependencies + run: sudo apt-get install -y libelf-dev zlib1g-dev - uses: actions/checkout@v4 - name: Install required tools run: sudo apt-get install -y llvm-14 @@ -316,6 +320,8 @@ jobs: # Stack borrows are very experimental. Disable for now. MIRIFLAGS: '-Zmiri-disable-stacked-borrows' steps: + - name: Install development dependencies + run: sudo apt-get install -y libelf-dev zlib1g-dev - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@master with: @@ -339,6 +345,8 @@ jobs: env: LLVM_GSYMUTIL: /usr/bin/llvm-gsymutil-14 steps: + - name: Install development dependencies + run: sudo apt-get install -y libelf-dev zlib1g-dev - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - run: cargo run --example backtrace @@ -387,6 +395,8 @@ jobs: name: Lint with clippy runs-on: ubuntu-latest steps: + - name: Install development dependencies + run: sudo apt-get install -y libelf-dev zlib1g-dev - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - run: cargo clippy --workspace --no-deps --all-targets --features=blazesym-dev/dont-generate-unit-test-files -- -A unknown_lints -D clippy::todo @@ -408,4 +418,4 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly - - run: cargo doc --workspace --no-deps + - run: cargo doc --workspace --exclude=gsym-in-apk --no-deps diff --git a/Cargo.toml b/Cargo.toml index 995943cdb..be64c0f29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,9 @@ members = [ "examples/sym-debuginfod", "examples/gsym-in-apk", ] +# We don't want every Cargo command to operate on all members, unless +# --workspace is specified. +default-members = ["."] [package] name = "blazesym"