14
14
- trying
15
15
16
16
env :
17
- GDEXT_FEATURES : ' '
18
- # GDEXT_FEATURES: '--features crate/feature'
19
- # GDEXT_CRATE_ARGS: '-p godot-codegen -p godot-ffi -p godot-core -p godot-macros -p godot'
20
-
21
17
# LSan options: https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer
22
18
# * report_objects: list individual leaked objects when running LeakSanitizer
23
19
LSAN_OPTIONS : report_objects=1
80
76
81
77
- name : " Check clippy"
82
78
run : |
83
- cargo clippy --all-targets $GDEXT_FEATURES $ {{ matrix.rust-extra-args }} -- \
79
+ cargo clippy --all-targets ${{ matrix.rust-extra-args }} -- \
84
80
-D clippy::suspicious -D clippy::style -D clippy::complexity -D clippy::perf \
85
81
-D clippy::dbg_macro -D clippy::todo -D clippy::unimplemented -D warnings
86
82
92
88
strategy :
93
89
fail-fast : false # cancel all jobs as soon as one fails?
94
90
matrix :
91
+ name : ["macos", "windows", "linux"]
92
+ feature : ["default", "threads"]
95
93
# Order this way because macOS typically has the longest duration, followed by Windows, so it benefits total workflow execution time.
96
94
# Additionally, the 'linux (msrv *)' special case will then be listed next to the other 'linux' jobs.
97
95
# Note: Windows uses '--target x86_64-pc-windows-msvc' by default as Cargo argument.
@@ -150,10 +148,10 @@ jobs:
150
148
godot-binary : ${{ matrix.godot-binary }}
151
149
152
150
- name : " Compile tests"
153
- run : cargo test $GDEXT_FEATURES --no-run ${{ matrix.rust-extra-args }}
151
+ run : cargo test --features "${{ matrix.feature }}" --no-run ${{ matrix.rust-extra-args }}
154
152
155
153
- name : " Test"
156
- run : cargo test $GDEXT_FEATURES ${{ matrix.rust-extra-args }}
154
+ run : cargo test --features "${{ matrix.feature }}" ${{ matrix.rust-extra-args }}
157
155
158
156
159
157
godot-itest :
@@ -164,6 +162,8 @@ jobs:
164
162
strategy :
165
163
fail-fast : false # cancel all jobs as soon as one fails?
166
164
matrix :
165
+ name : ["macos", "windows", "linux"]
166
+ feature : ["default", "threads"]
167
167
# Order this way because macOS typically has the longest duration, followed by Windows, so it benefits total workflow execution time.
168
168
# Additionally, the 'linux (msrv *)' special case will then be listed next to the other 'linux' jobs.
169
169
# Note: Windows uses '--target x86_64-pc-windows-msvc' by default as Cargo argument.
@@ -234,7 +234,7 @@ jobs:
234
234
artifact-name : godot-${{ matrix.name }}
235
235
godot-binary : ${{ matrix.godot-binary }}
236
236
godot-args : ${{ matrix.godot-args }}
237
- rust-extra-args : ${{ matrix.rust-extra-args }}
237
+ rust-extra-args : --features "${{ matrix.feature }}" ${{ matrix.rust-extra-args }}
238
238
rust-toolchain : ${{ matrix.rust-toolchain }}
239
239
rust-env-rustflags : ${{ matrix.rust-env-rustflags }}
240
240
with-llvm : ${{ matrix.with-llvm }}
0 commit comments