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 39ed920
Show file tree
Hide file tree
Showing 2 changed files with 41 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
27 changes: 26 additions & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,32 @@ 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/[email protected]
env:
CIBW_ARCHS_MACOS: universal2
CIBW_ARCHS_WINDOWS: auto ARM64
PATH: "/usr/local/opt/llvm/bin:${{ env.PATH }}"

- name: build wheel on macos-14
if: matrix.os == 'macos-14'
uses: pypa/[email protected]
env:
CIBW_ARCHS_MACOS: universal2
CIBW_ARCHS_WINDOWS: auto ARM64
PATH: "/opt/homebrew/opt/llvm/bin:${{ env.PATH }}"

- name: build wheel on windows-latest
if: matrix.os == 'windows-latest'
uses: pypa/[email protected]
env:
CIBW_ARCHS_MACOS: universal2
CIBW_ARCHS_WINDOWS: auto ARM64
PATH: "/c/Program Files/LLVM/bin:${{ env.PATH }}"

- name: build wheel ununtu-latest
if: matrix.os == 'ubuntu-latest'
uses: pypa/[email protected]
env:
CIBW_ARCHS_MACOS: universal2
Expand Down

0 comments on commit 39ed920

Please sign in to comment.