Skip to content

Commit b5efff4

Browse files
committed
[#3] Set 'RUSTFLAGS' as global env variable to have the build and test task with the same flags
1 parent 2626216 commit b5efff4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.cirrus.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ iox2_common_build_release_template: &IOX2_COMMON_BUILD_RELEASE
8282

8383
iox2_common_build_and_test_no_doc_tests_release_template: &IOX2_COMMON_BUILD_AND_TEST_NO_DOC_TESTS_RELEASE
8484
<<: *IOX2_COMMON_BUILD_RELEASE
85-
test_script: RUSTFLAGS="-C debug-assertions" cargo nextest run --release --tests --workspace --no-fail-fast
85+
test_script: cargo nextest run --release --tests --workspace --no-fail-fast
8686

8787
iox2_freebsd_setup_template: &IOX2_FREEBSD_SETUP
8888
setup_script:
@@ -104,6 +104,13 @@ iox2_freebsd_setup_template: &IOX2_FREEBSD_SETUP
104104

105105
only_if: $CIRRUS_BRANCH == 'main' || ($CIRRUS_PR != '' && $CIRRUS_BASE_BRANCH == 'main')
106106

107+
#
108+
# Global environment variables
109+
#
110+
111+
env:
112+
RUSTFLAGS: "-C debug-assertions"
113+
107114
#
108115
# Preflight-Check with Ubuntu x86 stable debug
109116
#

0 commit comments

Comments
 (0)