You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MAJOR="$(printf '%s\n' "$VERSION_H" | sed -n 's/^#define ROCKSDB_MAJOR \([0-9][0-9]*\).*/\1/p')"
48
+
MINOR="$(printf '%s\n' "$VERSION_H" | sed -n 's/^#define ROCKSDB_MINOR \([0-9][0-9]*\).*/\1/p')"
49
+
PATCH="$(printf '%s\n' "$VERSION_H" | sed -n 's/^#define ROCKSDB_PATCH \([0-9][0-9]*\).*/\1/p')"
50
+
if [[ -z "$MAJOR" || -z "$MINOR" || -z "$PATCH" ]]; then
51
+
echo "Failed to parse version.h from $VERSION_H_URL" >&2
52
+
printf '%s\n' "$VERSION_H" >&2
53
+
exit 1
54
+
fi
55
+
VERSION="${MAJOR}.${MINOR}.${PATCH}"
56
+
echo "Version from version.h: $VERSION"
57
+
58
+
MISMATCH_NOTE=""
59
+
if [[ "$VERSION" != "$TAG" ]]; then
60
+
MISMATCH_NOTE="**⚠️ Version mismatch:** upstream RocksDB tag v${TAG} does not match its bundled version.h (${VERSION}). This prebuild was built from the v${TAG} tag but is published as v${VERSION} to match the version the compiled library reports."
61
+
echo "::warning title=RocksDB version mismatch::tag v${TAG} != version.h ${VERSION}; publishing as v${VERSION}"
Built from upstream tag v${{ needs.check.outputs.version }} — release notes: https://github.com/facebook/rocksdb/releases/tag/v${{ needs.check.outputs.version }}
0 commit comments