Skip to content

Commit

Permalink
First test of actions building wheels.
Browse files Browse the repository at this point in the history
  • Loading branch information
twomagpi committed Aug 2, 2024
1 parent e6b861f commit 2bc23ca
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

jobs:
build:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest] # macos-latest
os: [ubuntu-latest, windows-latest, macos-13, macos-14] # macos-latest
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/cache@v1
if: startsWith(runner.os, 'Linux')
Expand Down Expand Up @@ -89,3 +89,30 @@ jobs:
echo "backend: TkAgg" >> ~/.matplotlib/matplotlibrc
- name: Test and coverage
run: python setup.py test

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

steps:
- uses: actions/checkout@v4

# Used to host cibuildwheel
- uses: actions/setup-python@v5

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

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value

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

0 comments on commit 2bc23ca

Please sign in to comment.