Add lldb smoke test (#1241)
* add lldb runner * don't build wasmtime * use brew's lldb * disable for macos * set LLDB on linux * re-org gh actions and cfg * address feedback
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
# define-dwarfdump-env
|
||||
|
||||
Defines `DWARFDUMP` path executable.
|
||||
3
.github/actions/define-llvm-env/README.md
vendored
Normal file
3
.github/actions/define-llvm-env/README.md
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# define-llvm-env
|
||||
|
||||
Defines `DWARFDUMP` and `LLDB` path executable.
|
||||
@@ -3,9 +3,11 @@
|
||||
// On OSX pointing to brew's LLVM location.
|
||||
if (process.platform == 'darwin') {
|
||||
console.log("::set-env name=DWARFDUMP::/usr/local/opt/llvm/bin/llvm-dwarfdump");
|
||||
console.log("::set-env name=LLDB::/usr/local/opt/llvm/bin/lldb");
|
||||
}
|
||||
|
||||
// On Linux pointing to specific version
|
||||
if (process.platform == 'linux') {
|
||||
console.log("::set-env name=DWARFDUMP::/usr/bin/llvm-dwarfdump-9");
|
||||
console.log("::set-env name=LLDB::/usr/bin/lldb-9");
|
||||
}
|
||||
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@@ -164,7 +164,7 @@ jobs:
|
||||
- uses: ./.github/actions/install-rust
|
||||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
- uses: ./.github/actions/define-dwarfdump-env
|
||||
- uses: ./.github/actions/define-llvm-env
|
||||
|
||||
- name: Install libclang
|
||||
# Note: libclang is pre-installed on the macOS and linux images.
|
||||
@@ -202,6 +202,7 @@ jobs:
|
||||
|
||||
# Test debug (DWARF) related functionality.
|
||||
- run: cargo test test_debug_dwarf_ -- --ignored --nocapture --test-threads 1
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
RUSTFLAGS: "-D warnings"
|
||||
|
||||
Reference in New Issue
Block a user