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

jdanek pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/main by this push:
     new baecbfac DISPATCH-2363: chore(gha): change Python version to match 
Proton requirements; Proton main needs 3.9 or greater to compile (#1706)
baecbfac is described below

commit baecbfac84706d0c44ab0291f44a508d7d4c4b72
Author: Jiri DanÄ›k <[email protected]>
AuthorDate: Sat Dec 28 14:22:13 2024 +0100

    DISPATCH-2363: chore(gha): change Python version to match Proton 
requirements; Proton main needs 3.9 or greater to compile (#1706)
---
 .github/workflows/build.yaml | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index a62e0412..c270051f 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -37,6 +37,8 @@ jobs:
       ProtonBuildDir: ${{github.workspace}}/qpid-proton/build
       DispatchBuildDir: ${{github.workspace}}/qpid-dispatch/build
       InstallPrefix: ${{github.workspace}}/install
+      # ternary in GHA: 
https://github.com/actions/runner/issues/409#issuecomment-752775072
+      PythonVersion: "${{ matrix.protonGitRef == 'main' && 3.9 || 3.8 }}"
       VERBOSE: 1
 
       ProtonCMakeExtraArgs: >
@@ -97,10 +99,10 @@ jobs:
       - name: Create Build and Install directories
         run: mkdir -p "${ProtonBuildDir}" "${DispatchBuildDir}" 
"${InstallPrefix}"
 
-      - name: Setup python
+      - name: Setup python ${{ env.PythonVersion }}
         uses: actions/setup-python@v4
         with:
-          python-version: 3.8
+          python-version: ${{ env.PythonVersion }}
           architecture: x64
 
       - name: Install Python build dependencies
@@ -184,6 +186,8 @@ jobs:
       ProtonBuildDir: ${{github.workspace}}/qpid-proton/build
       DispatchBuildDir: ${{github.workspace}}/qpid-dispatch/build
       InstallPrefix: ${{github.workspace}}/install
+      # ternary in GHA: 
https://github.com/actions/runner/issues/409#issuecomment-752775072
+      PythonVersion: "${{ matrix.protonGitRef == 'main' && 3.9 || 3.8 }}"
       # TODO(DISPATCH-2078) re-enable system_tests_authz_service_plugin when 
the GHA failure is understood and fixed
       DispatchCTestExtraArgs: "-E 'system_tests_authz_service_plugin'"
       LD_LIBRARY_PATH: ${{github.workspace}}/install/lib
@@ -200,10 +204,10 @@ jobs:
         with:
           name: 
qpid_dispatch_wrk_${{matrix.os}}_${{matrix.buildType}}_${{matrix.runtimeCheck}}_${{matrix.protonGitRef}}
 
-      - name: Setup python
+      - name: Setup python ${{ env.PythonVersion }}
         uses: actions/setup-python@v4
         with:
-          python-version: 3.8
+          python-version: ${{ env.PythonVersion }}
           architecture: x64
 
       - name: Install Python runtime/test dependencies


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

Reply via email to