diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index b127a57..11cdb47 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -38,9 +38,10 @@ jobs: - name: Build wheels on Linux if: runner.os == 'Linux' env: - CIBW_BEFORE_BUILD: 'yum update -y' + CIBW_BEFORE_BUILD: | + yum update -y + python -m pip install pybind11 run: | - pip install pybind11 python -m cibuildwheel --output-dir dist - name: Build wheels Mac OS if: runner.os == 'macOS' @@ -49,8 +50,8 @@ jobs: brew update brew unlink gcc@8 gcc@9 brew install cmake + python -m pip install pybind11 run: | - pip install pybind11 python -m cibuildwheel --output-dir dist - name: Store wheel as artifact uses: actions/upload-artifact@v2 @@ -69,7 +70,7 @@ jobs: python-version: 3.6 - name: Build a source tarball run: | - pip install pybind11 + python -m pip install pybind11 python setup.py sdist - name: Store sdist as artifact uses: actions/upload-artifact@v2