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

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory.git


The following commit(s) were added to refs/heads/main by this push:
     new cd60eb90c ci: speed up setup-python on windows (#3222)
cd60eb90c is described below

commit cd60eb90cfe969b467ff8f4069e066fae3d0de89
Author: Shawn Yang <[email protected]>
AuthorDate: Tue Jan 27 13:51:18 2026 +0800

    ci: speed up setup-python on windows (#3222)
    
    ## Summary
    - use Python 3.11 for Windows Java job setup
    - use Python 3.11 for Windows JavaScript job setup
    - keep Python 3.8 on non-Windows for distutils compatibility
    
    ## Testing
    - not run (workflow change only)
    
    Fixes #3215
---
 .github/workflows/ci.yml | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f126ded24..6b8fea8f0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -134,10 +134,10 @@ jobs:
           key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
             ${{ runner.os }}-maven-
-      - name: Set up Python 3.8
+      - name: Set up Python 3.11
         uses: actions/setup-python@v5
         with:
-          python-version: 3.8
+          python-version: 3.11
       - name: Run CI with Maven
         shell: bash
         run: python ./ci/run_ci.py java --version windows_java21
@@ -272,11 +272,12 @@ jobs:
       # The distutils module has been removed starting from python 3.12
       # (see https://docs.python.org/3.10/library/distutils.html). Some
       # OS (such as macos-latest) uses python3.12 by default, so python 3.8
-      # is used here to avoid this problem.
-      - name: Set up Python3.8
+      # is used here to avoid this problem. On Windows, use 3.11 to avoid
+      # the slower 3.8 download on hosted runners.
+      - name: Set up Python
         uses: actions/setup-python@v5
         with:
-          python-version: 3.8
+          python-version: ${{ runner.os == 'Windows' && '3.11' || '3.8' }}
       - name: Run CI with NodeJS
         run: python ./ci/run_ci.py javascript
 


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

Reply via email to