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 @@ -54,7 +54,13 @@ fn test_retain_autoreleased() {
54
54
// When compiled in release mode / with optimizations enabled,
55
55
// subsequent usage of `retain_autoreleased` will succeed in retaining
56
56
// the autoreleased value!
57
- let expected = if cfg ! ( all( debug_assertions, not( gnustep) ) ) {
57
+ let expected = if cfg ! ( gnustep) {
58
+ 1
59
+ } else if cfg ! ( any(
60
+ debug_assertions,
61
+ feature = "exception" ,
62
+ feature = "verify_message"
63
+ ) ) {
58
64
2
59
65
} else {
60
66
1
You can’t perform that action at this time.
0 commit comments