-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(WIP) Fixing MacOS build issue on workflows...
- Loading branch information
1 parent
1c45beb
commit fc46123
Showing
1 changed file
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|