Test basic DWARF generation (#931)
* Add obj generation with debug info * Add simple transform check
This commit is contained in:
3
.github/actions/define-dwarfdump-env/README.md
vendored
Normal file
3
.github/actions/define-dwarfdump-env/README.md
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# define-dwarfdump-env
|
||||
|
||||
Defines `DWARFDUMP` path executable.
|
||||
6
.github/actions/define-dwarfdump-env/action.yml
vendored
Normal file
6
.github/actions/define-dwarfdump-env/action.yml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
name: 'Set up a DWARFDUMP env'
|
||||
description: 'Set up a DWARFDUMP env (see tests/debug/dump.rs)'
|
||||
|
||||
runs:
|
||||
using: node12
|
||||
main: 'main.js'
|
||||
11
.github/actions/define-dwarfdump-env/main.js
vendored
Executable file
11
.github/actions/define-dwarfdump-env/main.js
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
// 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");
|
||||
}
|
||||
|
||||
// On Linux pointing to specific version
|
||||
if (process.platform == 'linux') {
|
||||
console.log("::set-env name=DWARFDUMP::/usr/bin/llvm-dwarfdump-9");
|
||||
}
|
||||
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@@ -149,6 +149,7 @@ jobs:
|
||||
- uses: ./.github/actions/install-rust
|
||||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
- uses: ./.github/actions/define-dwarfdump-env
|
||||
|
||||
- name: Install libclang
|
||||
# Note: libclang is pre-installed on the macOS and linux images.
|
||||
@@ -327,7 +328,7 @@ jobs:
|
||||
- run: $CENTOS cargo build --release --manifest-path crates/c-api/Cargo.toml
|
||||
shell: bash
|
||||
# Test what we just built
|
||||
- run: $CENTOS cargo test --features test_programs --release --all --exclude lightbeam --exclude wasmtime --exclude wasmtime-c-api --exclude wasmtime-fuzzing
|
||||
- run: $CENTOS cargo test --features test_programs --release --all --exclude lightbeam --exclude wasmtime --exclude wasmtime-c-api --exclude wasmtime-fuzzing -- --skip test_debug_dwarf_
|
||||
shell: bash
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
|
||||
Reference in New Issue
Block a user