File tree Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,11 @@ if [[ "$version" == "nightly" ]]; then
14
14
# Do not use extraFeatures="api-custom" here. They just want to use nightly Godot with current API.
15
15
extraFeatures=" "
16
16
else
17
- # Extract "major.minor" from "major.minor[.patch]".
18
- dashedVersion=$( echo " $version " | cut -d ' .' -f 1,2 | sed ' s/\./-/' )
17
+ # Extract "major.minor" from "major.minor[.patch]" -- disabled.
18
+ # dashedVersion=$(echo "$version" | cut -d '.' -f 1,2 | sed 's/\./-/')
19
+
20
+ # Convert . to - for feature name.
21
+ dashedVersion=" ${version// ./ -} "
19
22
extraFeatures=" , \" api-$dashedVersion \" "
20
23
fi
21
24
Original file line number Diff line number Diff line change 48
48
- name : " Check rustfmt"
49
49
run : cargo fmt --all -- --check
50
50
51
+ - name : " Run custom repo checks"
52
+ run : |
53
+ cargo run -p repo-tweak
54
+ git diff --quiet --exit-code || {
55
+ echo "::error::Godot versions out of sync; update with `cargo run -p repo-tweak`."
56
+ echo "Differences:"
57
+ echo "----------------------------------------------------"
58
+ git diff
59
+ echo "----------------------------------------------------"
60
+ exit 1
61
+ }
62
+
51
63
52
64
# Needs to be its own job (apart from sync-doc), because lints don't work with --no-deps, and because it contributes to ci-status.
53
65
doc-lints :
@@ -362,7 +374,7 @@ jobs:
362
374
os : ubuntu-20.04
363
375
artifact-name : linux-memcheck-4.1
364
376
godot-binary : godot.linuxbsd.editor.dev.x86_64.llvm.san
365
- godot-prebuilt-patch : ' 4.1.4 '
377
+ godot-prebuilt-patch : ' 4.1' # check compat of API 4.1.0 with newer binaries.
366
378
rust-toolchain : nightly
367
379
rust-env-rustflags : -Zrandomize-layout -Zsanitizer=address
368
380
# Sanitizers can't build proc-macros and build scripts; with --target, cargo ignores RUSTFLAGS for those two.
Original file line number Diff line number Diff line change 52
52
- name : " Check rustfmt"
53
53
run : cargo fmt --all -- --check
54
54
55
+ - name : " Run custom repo checks"
56
+ run : |
57
+ cargo run -p repo-tweak
58
+ git diff --quiet --exit-code || {
59
+ echo "::error::Godot versions out of sync; update with `cargo run -p repo-tweak`."
60
+ echo "Differences:"
61
+ echo "----------------------------------------------------"
62
+ git diff
63
+ echo "----------------------------------------------------"
64
+ exit 1
65
+ }
55
66
56
67
# Needs to be its own job (apart from sync-doc), because lints don't work with --no-deps, and because it contributes to ci-status.
57
68
doc-lints :
You can’t perform that action at this time.
0 commit comments