From 4c1fe25e7439402bb6e2be51ea849ffea1ffd45b Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Tue, 31 Mar 2026 14:29:43 +0530 Subject: [PATCH 1/2] MAINT: Fix code injection via template expansion --- .github/workflows/wheels.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 58052dd..c54f0e5 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -105,8 +105,11 @@ jobs: - name: pkg-config-for-win if: runner.os == 'windows' + env: + GITHUB_WORKSPACE: ${{ github.workspace }} run: | $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 @@ -116,6 +119,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 @@ -123,7 +128,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 From d651502aaf81afc50f74778abc9dfdd1b502e048 Mon Sep 17 00:00:00 2001 From: Andrew Nelson Date: Wed, 8 Apr 2026 18:25:50 +1000 Subject: [PATCH 2/2] Fix merge conflicts --- .github/workflows/wheels.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index c54f0e5..c8d6270 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -108,7 +108,6 @@ jobs: env: GITHUB_WORKSPACE: ${{ github.workspace }} run: | - $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 (?)