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

chaokunyang pushed a commit to tag v0.10.0
in repository https://gitbox.apache.org/repos/asf/fury.git

commit f9353d983ab7e69916e6170cdb3cbc607760e304
Author: chaokunyang <[email protected]>
AuthorDate: Thu Feb 6 22:14:59 2025 +0800

    fix build on windows
---
 .github/workflows/release.yaml | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 1b9590e9..1dc2a189 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -37,24 +37,22 @@ jobs:
         uses: actions/setup-python@v5
         with:
           python-version: ${{ matrix.python-version }}
-
       - name: Install bazel
-        if: matrix.os != 'windows-2022'
         shell: bash
-        run: ci/run_ci.sh install_bazel
-
-      - name: Install bazel on Windows
-        if: matrix.os == 'windows-2022'
-        run: ci/run_ci.sh install_bazel_windows
-
+        run: |
+          if [ "$RUNNER_OS" == "Windows" ]; then
+              ./ci/run_ci.sh install_bazel_windows
+          else
+              ./ci/run_ci.sh install_bazel
+          fi
       - name: Update version in setup.py
+        shell: bash
         run: ci/deploy.sh bump_py_version
-
       - name: Build a binary wheel
+        shell: bash
         run: |
           ci/deploy.sh build_pyfury
           ci/deploy.sh rename_linux_wheels dist
-
       - name: Upload Wheel Artifact
         uses: actions/upload-artifact@v4
         with:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to