diff --git a/.github/workflows/build_cython.yml b/.github/workflows/build_cython.yml index 495a8cbc..68ecbb11 100644 --- a/.github/workflows/build_cython.yml +++ b/.github/workflows/build_cython.yml @@ -41,18 +41,17 @@ jobs: python -m pip install cython numpy setuptools wheel - name: Build Cython extensions - shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }} + shell: bash # Simplified - bash works on all platforms in GitHub Actions env: ARCHFLAGS: ${{ matrix.target == 'intel' && '-arch x86_64' || '' }} run: | - ${{ matrix.os != 'windows-latest' && format( - 'if [ "{0}" == "macos-latest" ] && [ "{1}" == "intel" ]; then + if [ "${{ matrix.os }}" == "macos-latest" ] && [ "${{ matrix.target }}" == "intel" ]; then PYTHON_CROSSENV=$(pwd)/crossenv python -m pip install crossenv python -m crossenv $(which python3) $PYTHON_CROSSENV source $PYTHON_CROSSENV/bin/activate python -m pip install cython numpy setuptools wheel - fi', matrix.os, matrix.target) || '' }} + fi python cy_setup.py build_ext --inplace - name: Rename compiled extensions