File tree 2 files changed +11
-6
lines changed 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 68
68
if grep -q "Leaked instance" "${{ runner.temp }}/stdout.log"; then
69
69
exit 1;
70
70
fi;
71
- cargo build --features type-tag-fallback;
71
+ cargo build --features type-tag-fallback ${{ inputs.rust_extra_args }}
72
72
mkdir -p ./project/lib;
73
73
cp ../target/debug/libgdnative_test.so ./project/lib/;
74
74
${GODOT_BIN} --path ./project/ > >(tee "${{ runner.temp }}/stdout.log");
Original file line number Diff line number Diff line change @@ -214,11 +214,16 @@ godot_itest! { test_from_instance_id {
214
214
215
215
assert!( unsafe { Node :: try_from_instance_id( instance_id) . is_none( ) } ) ;
216
216
217
- let reconstructed = unsafe { Reference :: from_instance_id( instance_id) } ;
218
- assert_eq!(
219
- "bar" ,
220
- String :: from_variant( & reconstructed. get_meta( "foo" , Variant :: nil( ) ) ) . unwrap( )
221
- ) ;
217
+ // get_meta() got a new default parameter in Godot 3.5, which is a breaking change in Rust
218
+ // So we cannot run this automated test for older Godot versions in CI
219
+ #[ cfg( not( feature = "custom-godot" ) ) ]
220
+ {
221
+ let reconstructed = unsafe { Reference :: from_instance_id( instance_id) } ;
222
+ assert_eq!(
223
+ "bar" ,
224
+ String :: from_variant( & reconstructed. get_meta( "foo" , Variant :: nil( ) ) ) . unwrap( )
225
+ ) ;
226
+ }
222
227
}
223
228
224
229
assert!( unsafe { Reference :: try_from_instance_id( instance_id) . is_none( ) } ) ;
You can’t perform that action at this time.
0 commit comments