Skip to content

expand CI build targets #392

expand CI build targets

expand CI build targets #392

Workflow file for this run

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.platform }}_${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
linux_arch: [x86_64, aarch64]

Check failure on line 25 in .github/workflows/pypi-build-test.yml

View workflow run for this annotation

GitHub Actions / CI/CD 📝

Invalid workflow file

The workflow is not valid. .github/workflows/pypi-build-test.yml (Line: 25, Col: 7): Unexpected value 'linux_arch' .github/workflows/pypi-build-test.yml (Line: 26, Col: 7): Unexpected value 'macos_arch'
macos_arch: [x86_64, arm64]
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python: [310, 311]
include:
- os: ubuntu-latest
platform: manylinux
arch: ${{ strategy.linux_arch }}
- os: macos-latest
platform: macosx
arch: ${{ strategy.macos_arch }}
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: Build wheels
uses: pypa/cibuildwheel@v2.15.0
env:
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform }}_${{ matrix.arch }}
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: nuspacesim-gh-pypi-artifact
path: wheelhouse/*.whl
retention-days: 1