From b7b4889a24d953b434af6b8e8768c175c4b9d8e6 Mon Sep 17 00:00:00 2001 From: Roman Vlasenko Date: Mon, 29 Jan 2024 21:58:22 +0300 Subject: [PATCH] Fix build-test workflow --- .github/workflows/build-test.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index b6a7804..eaff7dc 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -28,10 +28,6 @@ on: value: ${{ jobs.output_run_id.outputs.run_id }} env: - # If this workflow is called to build for release, build using - # only one Python version, which is the lowest ABI version set - # in PyO3 features. - pymatrix: ${{ inputs.release && fromJSON(['3.8']) || fromJSON(['3.8', '3.12']) }} # If this workflow is called to build for release, build using # release profile. build_profile: ${{ inputs.release && 'release' || 'dev' }} @@ -43,7 +39,10 @@ jobs: strategy: matrix: target: [x86_64, aarch64] - py: ${{ env.pymatrix }} + # If this workflow is called to build for release, build using + # only one Python version, which is the lowest ABI version set + # in PyO3 features. + py: ${{ inputs.release && fromJSON('["3.8"]') || fromJSON('["3.8", "3.12"]') }} env: DISPLAY: :0 steps: @@ -79,7 +78,10 @@ jobs: runs-on: windows-latest strategy: matrix: - py: ${{ env.pymatrix }} + # If this workflow is called to build for release, build using + # only one Python version, which is the lowest ABI version set + # in PyO3 features. + py: ${{ inputs.release && fromJSON('["3.8"]') || fromJSON('["3.8", "3.12"]') }} steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -111,7 +113,10 @@ jobs: strategy: matrix: target: [x86_64, aarch64] - py: ${{ env.pymatrix }} + # If this workflow is called to build for release, build using + # only one Python version, which is the lowest ABI version set + # in PyO3 features. + py: ${{ inputs.release && fromJSON('["3.8"]') || fromJSON('["3.8", "3.12"]') }} steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5