diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 26cd86a..1ab8edd 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -43,6 +43,14 @@ jobs: with: package-dir: ${{github.workspace}}/python/ + # To handle OpenMP issue in MacOS + - name: Install dependencies (macOS) + if: runner.os == 'macOS' + run: | + brew install llvm + echo 'export CC=/opt/homebrew/opt/llvm/bin/clang' >> $GITHUB_ENV + echo 'export CXX=/opt/homebrew/opt/llvm/bin/clang++' >> $GITHUB_ENV + - name: Build all wheels if: github.event_name == 'release' uses: pypa/cibuildwheel@v2.22.0