From 7ab793adb67375b6f2dc22261fdca8a21c9b3b05 Mon Sep 17 00:00:00 2001 From: Julian Nguyen <109386615+juliannguyen4@users.noreply.github.com> Date: Tue, 20 Feb 2024 09:43:16 -0800 Subject: [PATCH] Try passing env variable directly without setting it --- .github/workflows/build-wheels.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index afe27a0587..3a4323faf3 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -172,16 +172,12 @@ jobs: - name: Build without optimizations if: ${{ inputs.build-for-debugging }} - run: echo "CIBW_ENVIRONMENT_PASS_LINUX_VARS=UNOPTIMIZED=1" >> $GITHUB_ENV - - - name: Build with optimizations (e.g for production) - if: ${{ !inputs.build-for-debugging }} - run: echo "CIBW_ENVIRONMENT_PASS_LINUX_VARS=''" >> $GITHUB_ENV + run: echo "UNOPTIMIZED=1" >> $GITHUB_ENV - name: Build wheel uses: pypa/cibuildwheel@v2.15.0 env: - CIBW_ENVIRONMENT_PASS_LINUX: ${{ env.CIBW_ENVIRONMENT_PASS_LINUX_VARS }} + CIBW_ENVIRONMENT_PASS_LINUX: ${{ inputs.build-for-debugging && 'UNOPTIMIZED' || '' }} CIBW_BUILD: ${{ matrix.python }}-manylinux_${{ matrix.platform }} CIBW_BUILD_FRONTEND: build CIBW_BEFORE_ALL_LINUX: >