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 34ae631
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Wheels
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,30 +123,40 @@ 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
if: matrix.os == 'windows-latest'
uses: pypa/[email protected]
shell: msys2 {0}
run: |
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS: native

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

Expand Down

0 comments on commit 34ae631

Please sign in to comment.