File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,18 @@ inputs:
1919 required : false
2020 default : -D warnings -A unknown-lints
2121
22+ RUSTDOCFLAGS :
23+ required : false
24+ default : -D warnings
25+
2226runs :
2327 using : " composite"
2428 steps :
2529 - name : set up Rust env
2630 shell : bash
2731 run : |
2832 echo "RUSTFLAGS=${{ inputs.RUSTFLAGS }}" >> $GITHUB_ENV
33+ echo "RUSTDOCFLAGS=${{ inputs.RUSTDOCFLAGS }}" >> $GITHUB_ENV
2934
3035 - name : test
3136 shell : bash
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ jobs:
127127 SUDO : " "
128128 TOOL : cross
129129 RUSTFLAGS : --cfg qemu -D warnings
130+ RUSTDOCFLAGS : --cfg qemu
130131
131132 - name : before_cache_script
132133 run : rm -rf $CARGO_HOME/registry/index
Original file line number Diff line number Diff line change @@ -78,10 +78,10 @@ pub fn get() -> Result<Persona> {
7878///
7979/// Example:
8080///
81- // Disable test on aarch64 until we know why it fails .
81+ // Disable test on aarch64 and with QEMU. seccomp interference is suspected .
8282// https://github.com/nix-rust/nix/issues/2060
83- #[ cfg_attr( target_arch = "aarch64" , doc = " ```no_run" ) ]
84- #[ cfg_attr( not( target_arch = "aarch64" ) , doc = " ```" ) ]
83+ #[ cfg_attr( any ( qemu , target_arch = "aarch64" ) , doc = " ```no_run" ) ]
84+ #[ cfg_attr( not( any ( qemu , target_arch = "aarch64" ) ) , doc = " ```" ) ]
8585/// # use nix::sys::personality::{self, Persona};
8686/// let mut pers = personality::get().unwrap();
8787/// assert!(!pers.contains(Persona::ADDR_NO_RANDOMIZE));
You can’t perform that action at this time.
0 commit comments