This is an automated email from the ASF dual-hosted git repository.

yuxia pushed a commit to tag v0.1.0
in repository https://gitbox.apache.org/repos/asf/fluss-rust.git

commit 7c23c77990f207b5da7296cfd4624f88446c27c4
Author: luoyuxia <[email protected]>
AuthorDate: Fri Apr 3 11:26:21 2026 +0800

    ci: install protoc from protobuf release on windows
---
 .github/workflows/release_python.yml | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/release_python.yml 
b/.github/workflows/release_python.yml
index d61213e..2893581 100644
--- a/.github/workflows/release_python.yml
+++ b/.github/workflows/release_python.yml
@@ -87,8 +87,22 @@ jobs:
 
       - name: Install protoc (Windows)
         if: runner.os == 'Windows'
-        run: choco install protoc -y
         shell: pwsh
+        run: |
+          $zip = 'protoc-27.1-win64.zip'
+          $url = 
"https://github.com/protocolbuffers/protobuf/releases/download/v27.1/$zip";
+          $installDir = Join-Path $env:RUNNER_TEMP 'protoc_install'
+          $zipPath = Join-Path $env:RUNNER_TEMP $zip
+
+          Invoke-WebRequest -Uri $url -OutFile $zipPath
+          if (Test-Path $installDir) {
+            Remove-Item -Recurse -Force $installDir
+          }
+          Expand-Archive -Path $zipPath -DestinationPath $installDir
+
+          $binDir = Join-Path $installDir 'bin'
+          "${binDir}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 
-Append
+          "PROTOC=${binDir}\protoc.exe" | Out-File -FilePath $env:GITHUB_ENV 
-Encoding utf8 -Append
 
       # Install protoc in manylinux container (x86_64/aarch64); script shared 
via YAML anchor
       - uses: PyO3/maturin-action@v1

Reply via email to