Skip to content

Commit

Permalink
(WIP) Fixing MacOS build issue on workflows...
Browse files Browse the repository at this point in the history
  • Loading branch information
LimHyungTae authored Jan 28, 2025
1 parent 1c45beb commit fc46123
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,24 @@ jobs:
steps:
- uses: actions/checkout@v3

# 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
echo 'export LDFLAGS="-L/opt/homebrew/opt/llvm/lib -Wl,-rpath,/opt/homebrew/opt/llvm/lib"' >> $GITHUB_ENV
echo 'export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"' >> $GITHUB_ENV
- name: Build test wheels (only PRs)
if: github.event_name != 'release'
uses: pypa/[email protected]
env: # build 1 build per platform just to make sure we can do it later when releasing
CIBW_BUILD: "cp310-*"
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/[email protected]
Expand Down

0 comments on commit fc46123

Please sign in to comment.