Skip to content

Commit 25040fd

Browse files
committed
ci(release): add nodedb-physical to the publish pipeline
Insert nodedb-physical as tier 7 in the crate publish order (it depends on nodedb-sql, nodedb-query, nodedb-graph, and nodedb-array). Shift the main nodedb server binary to tier 8. Also add nodedb-physical to the internal-dep version-pin sed expression so its version is updated correctly on release.
1 parent b112ab1 commit 25040fd

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
# For pre-release versions, pin internal dep requirements so semver
107107
# "0.0.0" doesn't fail to match "0.0.0-beta.1"
108108
if [[ "$VERSION" == *-* ]]; then
109-
sed -i -E 's/(nodedb-(codec|bridge|wal|mem|crdt|raft|fts|types|vector|graph|spatial|strict|client|columnar|cluster|query|sql|array) = \{ [^}]*version = )"[^"]*"/\1"='"$VERSION"'"/' Cargo.toml
109+
sed -i -E 's/(nodedb-(codec|bridge|wal|mem|crdt|raft|fts|types|vector|graph|spatial|strict|client|columnar|cluster|query|sql|array|physical) = \{ [^}]*version = )"[^"]*"/\1"='"$VERSION"'"/' Cargo.toml
110110
echo "Updated internal dep versions to =$VERSION"
111111
fi
112112
@@ -131,8 +131,10 @@ jobs:
131131
TIER5="nodedb-query"
132132
# Tier 6: depends on tier 5 (nodedb-sql depends on nodedb-query, nodedb-spatial)
133133
TIER6="nodedb-sql"
134-
# Tier 7: depends on tier 6 (nodedb depends on all crates including nodedb-sql)
135-
TIER7="nodedb"
134+
# Tier 7: depends on tier 6 (nodedb-physical depends on nodedb-sql, -query, -graph, -array)
135+
TIER7="nodedb-physical"
136+
# Tier 8: depends on tier 7 (nodedb depends on all crates including nodedb-physical)
137+
TIER8="nodedb"
136138
is_published() {
137139
curl -sf \
138140
-H "User-Agent: nodedb-ci (github.com/NodeDB-Lab/nodedb)" \
@@ -184,6 +186,7 @@ jobs:
184186
publish_tier "5 (depends on tier 4)" $TIER5
185187
publish_tier "6 (depends on tier 5)" $TIER6
186188
publish_tier "7 (depends on tier 6)" $TIER7
189+
publish_tier "8 (depends on tier 7)" $TIER8
187190
188191
# ── Build nodedb server binary (Linux only — requires io_uring) ──────────────
189192
build-server:
@@ -230,7 +233,7 @@ jobs:
230233
# For pre-release versions, pin internal dep requirements so semver
231234
# "0" doesn't fail to match "0.0.0-beta.3"
232235
if [[ "$VERSION" == *-* ]]; then
233-
sed -i -E 's/(nodedb-(codec|bridge|wal|mem|crdt|raft|fts|types|vector|graph|spatial|strict|client|columnar|cluster|query|sql|array) = \{ [^}]*version = )"[^"]*"/\1"='"$VERSION"'"/' Cargo.toml
236+
sed -i -E 's/(nodedb-(codec|bridge|wal|mem|crdt|raft|fts|types|vector|graph|spatial|strict|client|columnar|cluster|query|sql|array|physical) = \{ [^}]*version = )"[^"]*"/\1"='"$VERSION"'"/' Cargo.toml
234237
echo "Updated internal dep versions to =$VERSION"
235238
fi
236239

0 commit comments

Comments
 (0)