File tree 2 files changed +17
-2
lines changed 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -302,6 +302,13 @@ jobs:
302
302
args : --features ${{ env.FEATURES }} ${{ env.TESTARGS }}
303
303
304
304
- 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
305
312
if : ${{ !matrix.dinghy }}
306
313
uses : actions-rs/cargo@v1
307
314
with :
@@ -346,10 +353,12 @@ jobs:
346
353
xcrun simctl boot $SIM_ID
347
354
348
355
# Build
349
- cargo dinghy build
356
+ cargo dinghy --device=$SIM_ID build
350
357
351
358
# Run tests
352
359
cargo dinghy --device=$SIM_ID test --no-default-features
360
+ cargo dinghy --device=$SIM_ID test --release
361
+
353
362
# Enable a few features. We're doing it this way because cargo dingy
354
363
# doesn't support specifying features from a workspace.
355
364
sed -i -e '/\[features\]/a\
Original file line number Diff line number Diff line change @@ -55,7 +55,13 @@ fn test_retain_autoreleased() {
55
55
// When compiled in release mode / with optimizations enabled,
56
56
// subsequent usage of `retain_autoreleased` will succeed in retaining
57
57
// 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
+ ) ) {
59
65
2
60
66
} else {
61
67
1
You can’t perform that action at this time.
0 commit comments