diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index c64b388..2593aba 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -101,9 +101,11 @@ jobs: - name: pkg-config-for-win if: runner.os == 'windows' + env: + GITHUB_WORKSPACE: ${{ github.workspace }} run: | choco install -y --no-progress --stoponfirstfailure --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite - $CIBW = "${{ github.workspace }}/.openblas" + $CIBW = "$env:GITHUB_WORKSPACE/.openblas" # pkgconfig needs a complete path, and not just "./openblas since the # build is run in a tmp dir (?) # It seems somewhere in the env passing, `\` is not @@ -113,6 +115,8 @@ jobs: - name: Setup macOS if: startsWith(matrix.buildplat[0], 'macos') + env: + BLAS_BACKEND: ${{ matrix.buildplat[2] }} run: | # Needed due to https://github.com/actions/runner-images/issues/3371 # Supported versions: https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md @@ -120,7 +124,7 @@ jobs: echo "F77=gfortran-15" >> "$GITHUB_ENV" echo "F90=gfortran-15" >> "$GITHUB_ENV" - if [[ ${{ matrix.buildplat[2] }} == 'accelerate' ]]; then + if [[ "$BLAS_BACKEND" == 'accelerate' ]]; then # Builds with Accelerate only target macOS>=14.0 echo "CIBW_ENVIRONMENT_MACOS=MACOSX_DEPLOYMENT_TARGET=14.0 INSTALL_OPENBLAS=false" >> "$GITHUB_ENV" else