File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -302,6 +302,13 @@ jobs:
302302        args : --features ${{ env.FEATURES }} ${{ env.TESTARGS }} 
303303
304304    - name : Test in release mode 
305+       if : ${{ !matrix.dinghy }} 
306+       uses : actions-rs/cargo@v1 
307+       with :
308+         command : test 
309+         args : --no-default-features ${{ env.TESTARGS }} --release 
310+ 
311+     - name : Test in release mode with features 
305312      if : ${{ !matrix.dinghy }} 
306313      uses : actions-rs/cargo@v1 
307314      with :
@@ -346,10 +353,12 @@ jobs:
346353        xcrun simctl boot $SIM_ID 
347354
348355        # Build 
349-         cargo dinghy build 
356+         cargo dinghy --device=$SIM_ID  build 
350357
351358        # Run tests 
352359        cargo dinghy --device=$SIM_ID test --no-default-features 
360+         cargo dinghy --device=$SIM_ID test --release 
361+ 
353362        # Enable a few features. We're doing it this way because cargo dingy 
354363        # doesn't support specifying features from a workspace. 
355364        sed -i -e '/\[features\]/a\ 
Original file line number Diff line number Diff line change @@ -55,7 +55,13 @@ fn test_retain_autoreleased() {
5555        // When compiled in release mode / with optimizations enabled, 
5656        // subsequent usage of `retain_autoreleased` will succeed in retaining 
5757        // the autoreleased value! 
58-         let  expected = if  cfg ! ( all( debug_assertions,  not( gnustep) ) )  { 
58+         let  expected = if  cfg ! ( gnustep)  { 
59+             1 
60+         }  else  if  cfg ! ( any( 
61+             debug_assertions, 
62+             feature = "exception" , 
63+             feature = "verify_message" 
64+         ) )  { 
5965            2 
6066        }  else  { 
6167            1 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments