Skip to content

Commit 54ce58b

Browse files
committed
Update patch logic
1 parent 578e945 commit 54ce58b

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.github/composite/godot-itest/action.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,8 @@ runs:
9595
PATCHED_VERSION: ${{ inputs.godot-prebuilt-patch }}
9696
# sed -i'' needed for macOS compatibility, see https://stackoverflow.com/q/4247068
9797
run: |
98-
# Find the godot4-prebuilt version that gdext currently depends on.
99-
defaultVersion=$(grep '^default =' "godot-bindings/Cargo.toml" | sed -n 's/.*prebuilt-\([0-9]*-[0-9]*\).*/\1/p' | tr '-' '.')
100-
if [ -z "$defaultVersion" ]; then
101-
echo "::error::prebuilt version not found or format is incorrect."
102-
exit 1
103-
else
104-
echo "Default prebuilt version: $defaultVersion"
105-
fi
106-
10798
# Specify `api-*` feature for godot crate if needed.
108-
if [[ "$PATCHED_VERSION" != $defaultVersion ]]; then
109-
.github/other/patch-prebuilt.sh "$PATCHED_VERSION"
110-
fi
99+
.github/other/patch-prebuilt.sh "$PATCHED_VERSION"
111100
112101
# Reduce versions to "major.minor" format.
113102
apiVersion=$(echo "$PATCHED_VERSION" | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')

0 commit comments

Comments
 (0)