parent
cc71979826
commit
117741e1b1
2
.github/workflows/build_and_test.yml
vendored
2
.github/workflows/build_and_test.yml
vendored
@ -527,6 +527,8 @@ jobs:
|
|||||||
run: ./scripts/shmem_limits_macos.sh
|
run: ./scripts/shmem_limits_macos.sh
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: cargo test
|
run: cargo test
|
||||||
|
- name: Clippy
|
||||||
|
run: cargo +nightly clippy --tests --all
|
||||||
|
|
||||||
ios:
|
ios:
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
|
@ -20,6 +20,10 @@ fn nightly() {}
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("cargo:rustc-check-cfg=cfg(nightly)");
|
println!("cargo:rustc-check-cfg=cfg(nightly)");
|
||||||
|
println!(r#"cargo::rustc-check-cfg=cfg(emulation_mode, values("usermode", "systemmode"))"#);
|
||||||
|
println!(
|
||||||
|
r#"cargo::rustc-check-cfg=cfg(cpu_target, values("arm", "aarch64", "hexagon", "i386", "mips", "ppc", "x86_64"))"#
|
||||||
|
);
|
||||||
nightly();
|
nightly();
|
||||||
host_specific::build();
|
host_specific::build();
|
||||||
}
|
}
|
||||||
|
@ -15,10 +15,6 @@ macro_rules! assert_unique_feature {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn build() {
|
pub fn build() {
|
||||||
println!(r#"cargo::rustc-check-cfg=cfg(emulation_mode, values("usermode", "systemmode"))"#);
|
|
||||||
println!(
|
|
||||||
r#"cargo::rustc-check-cfg=cfg(cpu_target, values("arm", "aarch64", "hexagon", "i386", "mips", "ppc", "x86_64"))"#
|
|
||||||
);
|
|
||||||
// Make sure that exactly one qemu mode is set
|
// Make sure that exactly one qemu mode is set
|
||||||
assert_unique_feature!("usermode", "systemmode");
|
assert_unique_feature!("usermode", "systemmode");
|
||||||
let emulation_mode = if cfg!(feature = "usermode") {
|
let emulation_mode = if cfg!(feature = "usermode") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user