Skip to content

Commit

Permalink
new cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdavis committed Mar 12, 2024
1 parent 5336610 commit 11a3bce
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,36 @@ name: Build

on:
workflow_dispatch:
release:
types:
- published
# release:
# types:
# - published

jobs:
build_wheels:
name: Wheels on ${{ matrix.os }}
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-11, windows-2019]
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, windows-latest, macos-13, macos-14]

steps:
- uses: actions/checkout@v3
with:
submodules: true

# - name: install libomp on macOS
# shell: bash
# if: runner.os == 'macOS'
# run: |
# HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew reinstall --build-from-source --formula ./.github/workflows/libomp.rb

- name: Build wheels
uses: pypa/[email protected]

- name: Show files
run: ls -lh wheelhouse
shell: bash

- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/[email protected]
# env:
# CIBW_SOME_OPTION: value
# ...
# with:
# package-dir: .
# output-dir: wheelhouse
# config-file: "{package}/pyproject.toml"

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
Expand Down

0 comments on commit 11a3bce

Please sign in to comment.