diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 53b5340e3..e07aa5f2d 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -40,12 +40,21 @@ jobs: echo "COMMIT_HEAD=${{github.ref_name != '' && github.ref_name || env.GITHUB_SHA}}" | tee -a $GITHUB_ENV - name: Build wheels on ${{ matrix.os }} + if: ${{ !startsWith(matrix.os, 'macos') }} uses: pypa/cibuildwheel@v2.19.2 env: CIBW_BEFORE_ALL: sh -c "./python/install-hyperonc.sh -u https://github.com/${{github.repository}}.git -r ${{env.COMMIT_HEAD}}" with: package-dir: ./python + - name: Build wheels on ${{ matrix.os }} + if: ${{ startsWith(matrix.os, 'macos') }} + uses: pypa/cibuildwheel@v2.17.0 + env: + CIBW_BEFORE_ALL: sh -c "./python/install-hyperonc.sh -u https://github.com/${{github.repository}}.git -r ${{env.COMMIT_HEAD}}" + with: + package-dir: ./python + - name: Publish Artifacts on GitHub Release if: github.event.action == 'published' uses: svenstaro/upload-release-action@v2