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 6c90184
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CD

on: [push, workflow_dispatch]
#on: [push, workflow_dispatch]

env:
REGISTRY: ghcr.io
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: "Pip"

on:
workflow_dispatch:
pull_request:
push:
branches:
- master
# pull_request:
# push:
# branches:
# - master

jobs:
build:
Expand Down
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
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ test-command = "pytest {project}/tests"
test-extras = ["test"]
test-skip = ["*universal2:arm64"]
build-verbosity = 1
archs = ["native"]


[tool.ruff]
Expand Down

0 comments on commit 6c90184

Please sign in to comment.