File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,16 @@ jobs:
166166        with : { shared-key: "ubuntu" } 
167167      #  ---- build and feature check ----
168168      #  cargo-hack's --feature-powerset would be nice here but libafl has a too many knobs
169+ 
170+       #  Tracking: https://github.com/CensoredUsername/dynasm-rs/issues/114
171+       #  One dep of libafl_frida fails on `DOCS_RS` for stable toolchain. Therefore, we _only_ run nightly for that.
172+       #  For the rest of other crates, we still use stable toolchain.
173+       - name : " Setup nightly" 
174+         uses : dtolnay/rust-toolchain@nightly 
175+         with :
176+           components : clippy, rustfmt 
177+       - name : " But default to stable" 
178+         run : rustup default stable 
169179      - name : Check each feature 
170180        #  Skipping `python` as it has to be built with the `maturin` tool
171181        #  `sancov_pcguard_edges` is tested seperatelyc
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ RUN apt-get update && \
6464    python3-pip \
6565    python3-venv \
6666    software-properties-common \
67+     ca-certificates \
6768    wget
6869RUN  set -ex &&\
6970  wget https://apt.llvm.org/llvm.sh &&\
Original file line number Diff line number Diff line change @@ -67,9 +67,13 @@ fn main() -> Result<(), Box<dyn Error>> {
6767
6868        // run each task, with DOCS_RS override for libafl_frida 
6969        let  mut  cmd = Command :: new ( "bash" ) ; 
70-         cmd. arg ( "-c" ) . arg ( task ) ; 
70+         cmd. arg ( "-c" ) ; 
7171        if  task. contains ( "libafl_frida" )  { 
7272            cmd. env ( "DOCS_RS" ,  "1" ) ; 
73+             let  task = task. replace ( "cargo " ,  "cargo +nightly " ) ; 
74+             cmd. arg ( task) ; 
75+         }  else  { 
76+             cmd. arg ( task) ; 
7377        } 
7478        let  status = cmd. status ( ) ?; 
7579        if  !status. success ( )  { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments