Skip to content

Commit

Permalink
explitly invoke cibuildwheel with PATHs set
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jun 4, 2024
1 parent 46f01f5 commit 2b2fa74
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Wheels

on:
workflow_dispatch:
# pull_request:
# push:
# branches:
# - master
# release:
# types:
# - published
pull_request:
push:
branches:
- master
release:
types:
- published

env:
FORCE_COLOR: 3
Expand Down Expand Up @@ -123,29 +123,41 @@ jobs:
dpkg -s libboost-all-dev
dpkg -s libhdf5-dev
# Used to host cibuildwheel
- uses: actions/setup-python@v5

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.18.1

- name: build wheel on macos-13
if: matrix.os == 'macos-13'
uses: pypa/[email protected]
run: |
export PATH="/usr/local/opt/llvm/bin:$PATH"
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS: native
CIBW_ENVIRONMENT: PATH=/usr/local/opt/llvm/bin:$PATH

- name: build wheel on macos-14
if: matrix.os == 'macos-14'
uses: pypa/[email protected]
run: |
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS: native
CIBW_ENVIRONMENT: PATH=/opt/homebrew/opt/llvm/bin:$PATH

- name: build wheel on windows-latest
shell: msys2 {0}
run: |
python -m cibuildwheel --output-dir wheelhouse
if: matrix.os == 'windows-latest'
uses: pypa/[email protected]
env:
CIBW_ARCHS: native

- name: build wheel
if: matrix.os == 'ubuntu-latest'
run: |
python -m cibuildwheel --output-dir wheelhouse
uses: pypa/[email protected]
env:
CIBW_ARCHS: native
Expand Down

0 comments on commit 2b2fa74

Please sign in to comment.