@@ -61,21 +61,21 @@ jobs:
6161 exit 1
6262 fi
6363 echo "✅ Release tag format is valid: $RELEASE_TAG"
64-
64+
6565 # Strip 'v' prefix for cargo version
6666 CARGO_VERSION="${RELEASE_TAG#v}"
6767 echo "Cargo version (without v prefix): $CARGO_VERSION"
68-
68+
6969 # For manual triggers, validate that the tag matches the version in Cargo.toml
7070 if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
7171 # Extract base version (without -rc.X suffix) for comparison with Cargo.toml
7272 BASE_VERSION="${CARGO_VERSION%-rc.*}"
7373 echo "Base version (for Cargo.toml comparison): $BASE_VERSION"
74-
74+
7575 # Read version from Cargo.toml and validate it matches
7676 CARGO_TOML_VERSION=$(grep '^version = ' bindings/python/Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
7777 echo "Version in bindings/python/Cargo.toml: $CARGO_TOML_VERSION"
78-
78+
7979 if [ "$BASE_VERSION" != "$CARGO_TOML_VERSION" ]; then
8080 echo "❌ Version mismatch!"
8181 echo " Release tag base version: $BASE_VERSION"
8585 fi
8686 echo "✅ Version matches bindings/python/Cargo.toml"
8787 fi
88-
88+
8989 # Check if this is a release candidate
9090 if [[ "$RELEASE_TAG" =~ -rc\.[0-9]+$ ]]; then
9191 IS_RC="true"
9494 IS_RC="false"
9595 echo "This is a stable release"
9696 fi
97-
97+
9898 # Set outputs for other jobs to use
9999 echo "cargo-version=$CARGO_VERSION" >> $GITHUB_OUTPUT
100100 echo "is-rc=$IS_RC" >> $GITHUB_OUTPUT
@@ -110,7 +110,7 @@ jobs:
110110 - name : Install toml-cli
111111 if : ${{ needs.validate-release-tag.outputs.is-rc == 'true' }}
112112 run : cargo install toml-cli
113-
113+
114114 - name : Set cargo version for RC
115115 if : ${{ needs.validate-release-tag.outputs.is-rc == 'true' }}
116116 working-directory : " bindings/python"
@@ -124,13 +124,13 @@ jobs:
124124 env :
125125 NEEDS_VALIDATE_RELEASE_TAG_OUTPUTS_CARGO_VERSION : ${{ needs.validate-release-tag.outputs.cargo-version }}
126126
127- - uses : PyO3/maturin-action@04ac600d27cdf7a9a280dadf7147097c42b757ad # v1.50.1
127+ - uses : PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
128128 with :
129129 working-directory : " bindings/python"
130130 command : sdist
131131 args : -o dist
132132 - name : Upload sdist
133- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
133+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
134134 with :
135135 name : wheels-sdist
136136 path : bindings/python/dist
@@ -159,7 +159,7 @@ jobs:
159159 - name : Install toml-cli
160160 if : ${{ needs.validate-release-tag.outputs.is-rc == 'true' }}
161161 run : cargo install toml-cli
162-
162+
163163 - name : Set cargo version for RC
164164 if : ${{ needs.validate-release-tag.outputs.is-rc == 'true' }}
165165 working-directory : " bindings/python"
@@ -184,15 +184,15 @@ jobs:
184184 uses : ./.github/actions/setup-builder
185185 with :
186186 rust-version : ${{ steps.get-msrv.outputs.msrv }}
187- - uses : PyO3/maturin-action@04ac600d27cdf7a9a280dadf7147097c42b757ad # v1.50.1
187+ - uses : PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
188188 with :
189189 target : ${{ matrix.target }}
190190 manylinux : ${{ matrix.manylinux || 'auto' }}
191191 working-directory : " bindings/python"
192192 command : build
193193 args : --release -o dist -i python3.12 # Explicitly set interpreter; manylinux containers have multiple Pythons and maturin may pick an older one
194194 - name : Upload wheels
195- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
195+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
196196 with :
197197 name : wheels-${{ matrix.os }}-${{ matrix.target }}
198198 path : bindings/python/dist
0 commit comments