Run tests with all feature powerset

reviewable/pr650/r4
Tamir Duberstein 2 years ago
parent 16189e18cb
commit e5143c881c
No known key found for this signature in database

3
.github/bin/cargo vendored

@ -0,0 +1,3 @@
#!/usr/bin/env sh
exec cross "$@"

@ -37,11 +37,14 @@ jobs:
- name: Check
run: cargo hack check --all-targets --workspace --feature-powerset --target ${{matrix.arch}}
- name: Add cross-as-cargo to PATH
run: echo "${{ github.workspace }}/.github/bin" >> $GITHUB_PATH
- uses: taiki-e/install-action@cross
- name: Build
run: cross build --verbose --target ${{matrix.arch}}
run: cargo hack build --all-targets --workspace --feature-powerset --target ${{matrix.arch}}
- name: Test
env:
RUST_BACKTRACE: full
run: cross test --verbose --target ${{matrix.arch}}
run: cargo hack test --all-targets --workspace --feature-powerset --target ${{matrix.arch}}

@ -37,7 +37,10 @@
//! let bytes = std::fs::read("program.o").unwrap();
//! let mut object = Object::parse(&bytes).unwrap();
//! // Relocate the programs
//! #[cfg(feature = "std")]
//! let text_sections = std::collections::HashSet::new();
//! #[cfg(not(feature = "std"))]
//! let text_sections = hashbrown::HashSet::new();
//! object.relocate_calls(&text_sections).unwrap();
//! object.relocate_maps(std::iter::empty(), &text_sections).unwrap();
//!

Loading…
Cancel
Save