Skip to content

Commit

Permalink
update platform LLVM paths for pip and wheel actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jun 3, 2024
1 parent f593bb4 commit 8a66055
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 5 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
cmake --version
brew info boost
brew info hdf5
echo "CC=/usr/local/opt/llvm/bin/clang" >> $GITHUB_ENV
echo "CXX=/usr/local/opt/llvm/bin/clang++" >> $GITHUB_ENV
- name: Install ARM MacOS dependencies
if: matrix.platform == 'macos-14'
Expand All @@ -56,6 +60,10 @@ jobs:
cmake --version
brew info boost
brew info hdf5
echo "CC=/opt/homebrew/opt/llvm/bin/clang" >> $GITHUB_ENV
echo "CXX=/opt/homebrew/opt/llvm/bin/clang++" >> $GITHUB_ENV
- name: Install Windows Dependencies
if: matrix.platform == 'windows-latest'
Expand All @@ -75,6 +83,11 @@ jobs:
mingw-w64-clang-x86_64-libzip
mingw-w64-clang-x86_64-zlib
mingw-w64-clang-x86_64-libaec
- if: matrix.os == 'windows-latest'
run: |
echo "CC=/c/Program Files/LLVM/bin/clang.exe" >> $GITHUB_ENV
echo "CXX=/c/Program Files/LLVM/bin/clang++.exe" >> $GITHUB_ENV
- name: Install Linux Dependencies
if: matrix.platform == 'ubuntu-latest'
Expand All @@ -94,15 +107,27 @@ jobs:
with:
python-version: "${{ matrix.python-version }}"

- name: Build and install
- name: Build and install macos-13
run: pip install --verbose .
if: matrix.platform == 'macos-13'
env:
PATH: "/usr/local/opt/llvm/bin:${{ env.PATH }}"

- name: Build and install macos-14
run: pip install --verbose .
if: matrix.platform == 'macos-14'
env:
PATH: "/opt/homebrew/opt/llvm/bin:${{ env.PATH }}"

- name: Build and install windows-latest
run: pip install --verbose .
if: matrix.platform == 'windows-latest'
env:
PATH: "/c/Program Files/LLVM/bin:${{ env.PATH }}"

- name: Build and install
- name: Build and install ubuntu-latest
run: pip install --verbose .
if: matrix.platform != 'windows-latest'
if: matrix.platform == 'ubuntu-latest'

- name: Test
run: |
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ jobs:
cmake --version
brew info boost
brew info hdf5
echo "CC=/usr/local/opt/llvm/bin/clang" >> $GITHUB_ENV
echo "CXX=/usr/local/opt/llvm/bin/clang++" >> $GITHUB_ENV
- name: Install ARM MacOS dependencies
if: matrix.os == 'macos-14'
Expand All @@ -87,6 +91,9 @@ jobs:
cmake --version
brew info boost
brew info hdf5
echo "CC=/opt/homebrew/opt/llvm/bin/clang" >> $GITHUB_ENV
echo "CXX=/opt/homebrew/opt/llvm/bin/clang++" >> $GITHUB_ENV
- name: Install Windows Dependencies
if: matrix.os == 'windows-latest'
Expand All @@ -106,6 +113,11 @@ jobs:
mingw-w64-clang-x86_64-libzip
mingw-w64-clang-x86_64-zlib
mingw-w64-clang-x86_64-libaec
- if: matrix.os == 'windows-latest'
run: |
echo "CC=/c/Program Files/LLVM/bin/clang.exe" >> $GITHUB_ENV
echo "CXX=/c/Program Files/LLVM/bin/clang++.exe" >> $GITHUB_ENV
- name: Install Linux Dependencies
if: matrix.os == 'ubuntu-latest'
Expand All @@ -124,8 +136,7 @@ jobs:
- name: build wheel
uses: pypa/[email protected]
env:
CIBW_ARCHS_MACOS: universal2
CIBW_ARCHS_WINDOWS: auto ARM64
CIBW_ARCHS: native

- name: Verify clean directory
run: git diff --exit-code
Expand Down

0 comments on commit 8a66055

Please sign in to comment.