(self-hosted) Build and Test Windows x86 wheels #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: (self-hosted) Build and Test Windows x86 wheels | |
on: workflow_dispatch | |
jobs: | |
build_sdist: | |
runs-on: [self-hosted, Windows] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Build sdist | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade nox | |
python -m nox --sessions build_sdist | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: sdist | |
path: ./wheelhouse/*.tar.gz | |
build_wheels: | |
name: Build wheels on Windows | |
runs-on: [self-hosted, Windows] | |
needs: build_sdist | |
steps: | |
- uses: actions/checkout@v4 | |
# Used to host cibuildwheel | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: | | |
3.9 | |
3.10 | |
3.11 | |
3.12 | |
- name: Install cibuildwheel | |
run: python -m pip install cibuildwheel==2.16.2 | |
- name: Build wheels | |
run: python -m cibuildwheel --output-dir wheelhouse | |
env: | |
CIBW_BUILD: cp39-win_amd64 cp310-win_amd64 cp311-win_amd64 cp312-win_amd64 | |
# to supply options, put them in 'env', like: | |
# env: | |
# CIBW_SOME_OPTION: value | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: wheels-windows | |
path: ./wheelhouse/*.whl |