mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-06 10:00:58 -05:00
ci: apply SemVer version bump on macOS and Windows too (#9649)
The previous fix only updated the Linux block because its old_string matched a longer comment that the macOS/Windows blocks never had, so those two jobs kept the original PEP 440 `.dev<N>` syntax without the patch bump. Result: latest CI on `dev` (run 28509950366) still failed with `unexpected character '.' after patch version number` on both macOS and Windows, showing `version = "0.7.2.dev55"`. Bring both blocks in line with Linux: SemVer `-dev<N>` suffix and the patch-component bump. Same awk logic on all three, so maturin sees a Cargo-valid version on every runner. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
committed by
generall
parent
5d9d5603c1
commit
48bd3051ec
22
.github/workflows/edge-py-release.yml
vendored
22
.github/workflows/edge-py-release.yml
vendored
@@ -123,12 +123,21 @@ jobs:
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
|
||||
- name: Set pre-release version
|
||||
# See the identical step on the Linux job for the rationale (SemVer
|
||||
# `-dev<N>` + patch bump so maturin emits PEP 440 `X.Y.(Z+1).dev<N>`).
|
||||
if: github.event_name == 'push'
|
||||
shell: bash
|
||||
working-directory: lib/edge/python
|
||||
run: |
|
||||
awk -v run="${GITHUB_RUN_NUMBER}" '
|
||||
!patched && /^version = "/ { sub(/"$/, ".dev" run "\""); patched = 1 }
|
||||
!patched && /^version = "/ {
|
||||
split($0, quoted, "\"")
|
||||
split(quoted[2], parts, ".")
|
||||
parts[3] = parts[3] + 1
|
||||
print "version = \"" parts[1] "." parts[2] "." parts[3] "-dev" run "\""
|
||||
patched = 1
|
||||
next
|
||||
}
|
||||
{ print }
|
||||
' Cargo.toml > Cargo.toml.new
|
||||
mv Cargo.toml.new Cargo.toml
|
||||
@@ -176,12 +185,21 @@ jobs:
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
|
||||
- name: Set pre-release version
|
||||
# See the identical step on the Linux job for the rationale (SemVer
|
||||
# `-dev<N>` + patch bump so maturin emits PEP 440 `X.Y.(Z+1).dev<N>`).
|
||||
if: github.event_name == 'push'
|
||||
shell: bash
|
||||
working-directory: lib/edge/python
|
||||
run: |
|
||||
awk -v run="${GITHUB_RUN_NUMBER}" '
|
||||
!patched && /^version = "/ { sub(/"$/, ".dev" run "\""); patched = 1 }
|
||||
!patched && /^version = "/ {
|
||||
split($0, quoted, "\"")
|
||||
split(quoted[2], parts, ".")
|
||||
parts[3] = parts[3] + 1
|
||||
print "version = \"" parts[1] "." parts[2] "." parts[3] "-dev" run "\""
|
||||
patched = 1
|
||||
next
|
||||
}
|
||||
{ print }
|
||||
' Cargo.toml > Cargo.toml.new
|
||||
mv Cargo.toml.new Cargo.toml
|
||||
|
||||
Reference in New Issue
Block a user