Skip to content

Commit b93a4e2

Browse files
ci: require rb-sys 0.9.126+ for Ruby 4 cross-gems
1 parent 4e275bf commit b93a4e2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build-gems.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ jobs:
5454
echo "Failed to detect rb-sys version from Cargo.lock" >&2
5555
exit 1
5656
fi
57+
58+
# Ruby 4.0 cross-compilation support requires newer rb-sys/rake-compiler-dock.
59+
min_version="0.9.126"
60+
if [ "$(printf '%s\n' "$version" "$min_version" | sort -V | tail -n1)" != "$version" ]; then
61+
version="$min_version"
62+
fi
63+
5764
echo "version=$version" >> "$GITHUB_OUTPUT"
5865
5966
- name: Build native gem with rb-sys-dock

0 commit comments

Comments
 (0)