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 7cc0cd4
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 4 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,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
42 changes: 41 additions & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ jobs:
cmake --version
brew info boost
brew info hdf5
echo "CC=$(which clang)" >> $GITHUB_ENV
echo "CXX=$(which clang++)" >> $GITHUB_ENV
env:
PATH: "/usr/local/opt/llvm/bin:${{ env.PATH }}"


- name: Install ARM MacOS dependencies
if: matrix.os == 'macos-14'
Expand All @@ -87,6 +93,11 @@ jobs:
cmake --version
brew info boost
brew info hdf5
echo "CC=$(which clang)" >> $GITHUB_ENV
echo "CXX=$(which clang++)" >> $GITHUB_ENV
env:
PATH: "/opt/homebrew/opt/llvm/bin:${{ env.PATH }}"

- name: Install Windows Dependencies
if: matrix.os == 'windows-latest'
Expand All @@ -106,6 +117,13 @@ 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=$(which clang)" >> $GITHUB_ENV
echo "CXX=$(which clang++)" >> $GITHUB_ENV
env:
PATH: "/c/Program Files/LLVM/bin:${{ env.PATH }}"


- name: Install Linux Dependencies
if: matrix.os == 'ubuntu-latest'
Expand All @@ -121,7 +139,29 @@ jobs:
dpkg -s libboost-all-dev
dpkg -s libhdf5-dev
- name: build wheel
- name: build wheel on macos-13
if: matrix.os == 'macos-13'
uses: pypa/cibuildwheel@v2.17
env:
CIBW_ARCHS_MACOS: universal2
CIBW_ARCHS_WINDOWS: auto ARM64

- name: build wheel on macos-14
if: matrix.os == 'macos-14'
uses: pypa/cibuildwheel@v2.17
env:
CIBW_ARCHS_MACOS: universal2
CIBW_ARCHS_WINDOWS: auto ARM64

- name: build wheel on windows-latest
if: matrix.os == 'windows-latest'
uses: pypa/cibuildwheel@v2.17
env:
CIBW_ARCHS_MACOS: universal2
CIBW_ARCHS_WINDOWS: auto ARM64

- name: build wheel ununtu-latest
if: matrix.os == 'ubuntu-latest'
uses: pypa/cibuildwheel@v2.17
env:
CIBW_ARCHS_MACOS: universal2
Expand Down

0 comments on commit 7cc0cd4

Please sign in to comment.