Skip to content

Commit

Permalink
CI: update GH script, pin cibuildwheel version
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanDunfield committed Aug 14, 2023
1 parent b08863f commit 27cb0c7
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,20 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-latest, macos-latest]
os: [ubuntu-20.04, windows-2019, macos-11]

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
name: Install Python

- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel
- uses: actions/checkout@v3

- name: Build wheels
run: |
python -m cibuildwheel --output-dir wheelhouse
uses: pypa/[email protected]
env:
# Skip Python 2.7 and 3.5, 32 bit Linux, and PyPy.
CIBW_SKIP: cp27-* cp35-* *-manylinux_i686 *musllinux* pp*
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2"
CIBW_REPAIR_WHEEL_COMMAND_LINUX: auditwheel repair --strip -w {dest_dir} {wheel}
CIBW_TEST_COMMAND: python -m low_index.test

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

0 comments on commit 27cb0c7

Please sign in to comment.