From 1873748aa84dd0cee142bbeb065e4f8234a35ac5 Mon Sep 17 00:00:00 2001 From: Vitor Guidi Date: Fri, 10 May 2024 20:40:13 +0000 Subject: [PATCH] Attempting to matrix map --- .github/workflows/build_python_deps_linux.yml | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build_python_deps_linux.yml b/.github/workflows/build_python_deps_linux.yml index 7279bdd0e7..5ff2982c9e 100644 --- a/.github/workflows/build_python_deps_linux.yml +++ b/.github/workflows/build_python_deps_linux.yml @@ -19,13 +19,12 @@ jobs: ["3.12","cp312-*"], ] wheel_combinations: [ - {platform:"ubuntu-latest",arch:"x86_64"}, - {platform:"windows-latest",arch:"x86_64"}, - {platform:"macos13",arch:"x86_64"}, - {platform:"macos13",arch:"arm64"}, - {platform:"macos14",arch:"x86_64"}, - {platform:"macos14",arch:"arm64"}, - + ["ubuntu-latest", "x86_64"], + ["windows-latest", "x86_64"], + ["macos13", "x86_64"], + ["macos13", "arm64"], + ["macos14", "x86_64"], + ["macos14", "arm64"], ] fail-fast: false @@ -39,14 +38,14 @@ jobs: run: python -m pip install cibuildwheel==2.17.0 - name: Download and Untar File - Windows - if: matrix.wheel_combinations.platform == 'windows-latest' + if: matrix.wheel_combinations[0] == 'windows-latest' run: | Invoke-WebRequest -Uri "https://files.pythonhosted.org/packages/0c/2a/23943e19b4bbbdad60a9d881e44cd53bb48b31c7419ebb7b983edfbbb708/grpcio-1.63.0.tar.gz" -OutFile "grpcio-1.63.0.tar.gz" Expand-Archive -Path "grpcio-1.63.0.tar.gz" -DestinationPath "grpcio-1.63.0" cd grpcio-1.63.0 - name: Download and Untar File - Unix - if: matrix.wheel_combinations.platform != 'windows-latest' + if: matrix.wheel_combinations[0] != 'windows-latest' run: | cd /tmp wget -O grpcio-1.63.0.tar.gz https://files.pythonhosted.org/packages/0c/2a/23943e19b4bbbdad60a9d881e44cd53bb48b31c7419ebb7b983edfbbb708/grpcio-1.63.0.tar.gz @@ -63,12 +62,12 @@ jobs: python -m cibuildwheel --output-dir wheelhouse # to supply options, put them in 'env', like: env: - CIBW_ARCHS: ${{ matrix.wheel_combinations.arch }} + CIBW_ARCHS: ${{ matrix.wheel_combinations[1] }} CIBW_BUILD: ${{ matrix.python_versions[1] }} - uses: actions/upload-artifact@v4 with: - name: cibw-wheels-${{ matrix.wheel_combinations.platform }}-${{ strategy.job-index }} + name: cibw-wheels-${{ matrix.wheel_combinations[0] }}-${{ strategy.job-index }} path: ./wheelhouse/*.whl