Skip to content

Commit

Permalink
test simpler variant of build wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
Udopia committed Oct 31, 2024
1 parent 8eb9586 commit c800b82
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/build_wheels2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build

on: workflow_dispatch

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5

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

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BEFORE_ALL_LINUX: bash ./instdeps.sh
CIBW_BEFORE_ALL_MACOS: brew install libarchive pybind11

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
2 changes: 1 addition & 1 deletion instdeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
dnf install -y libarchive-devel
dnf install -y cmake
dnf groupinstall -y "Development Tools"
cd /project
# cd /project
git clone https://github.com/pybind/pybind11.git
cd pybind11
mkdir build
Expand Down

0 comments on commit c800b82

Please sign in to comment.