expand CI build targets #399
Workflow file for this run
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: CI/CD 📝 | ||
on: | ||
schedule: | ||
- cron: "55 4 * * *" | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'src/**' | ||
- 'test/**' | ||
- setup.py | ||
- setup.cfg | ||
- pyproject.toml | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
jobs: | ||
build_wheels: | ||
name: Wheel cp${{ matrix.python }}-${{ matrix.os }}-${{ matrix.arch }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
python: [310, 311] | ||
arch: [x86, arm] | ||
include: | ||
- os: ubuntu-latest | ||
arch: x86 | ||
platform_id: manylinux_x86_64 | ||
- os: ubuntu-latest | ||
arch: arm | ||
platform_id: manylinux_aarch64 | ||
- os: macos-latest | ||
arch: x86 | ||
platform_id: macosx_x86_64 | ||
- os: macos-latest | ||
arch: arm | ||
platform_id: macosx_arm64 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Get history and tags for SCM versioning | ||
run: | | ||
git fetch --prune --unshallow | ||
git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- name: Set up QEMU for ARM on Linux | ||
if: matrix.arch == 'arm' && matrix.os == 'ubuntu-latest' | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: all | ||
- name: Build wheels | ||
uses: pypa/cibuildwheel@v2.15.0 | ||
env: | ||
CIBW_BUILD: cp${{ matrix.python }}-${{ platform_id }} | ||
Check failure on line 60 in .github/workflows/pypi-build-test.yml GitHub Actions / CI/CD 📝Invalid workflow file
|
||
- name: Upload Build Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nuspacesim-gh-pypi-artifact | ||
path: wheelhouse/*.whl | ||
retention-days: 1 |