wheel.yml (prophet-1.1) | : | wheel.yml (prophet-1.1.1) | ||
---|---|---|---|---|
skipping to change at line 13 | skipping to change at line 13 | |||
on: | on: | |||
release: | release: | |||
types: [ published ] | types: [ published ] | |||
workflow_dispatch: {} | workflow_dispatch: {} | |||
env: | env: | |||
STAN_BACKEND: "CMDSTANPY" | STAN_BACKEND: "CMDSTANPY" | |||
jobs: | jobs: | |||
make-wheels: | make-wheels: | |||
name: Make ${{ matrix.os }} wheels | name: Make ${{ matrix.os }} ${{ matrix.cibw_arch }} ${{ matrix.py_version }} wheels | |||
runs-on: ${{ matrix.os }} | runs-on: ${{ matrix.os }} | |||
strategy: | strategy: | |||
matrix: | matrix: | |||
os: ["macos-latest", "ubuntu-latest", "windows-latest"] | os: ["macos-latest", "ubuntu-latest", "windows-latest"] | |||
cibw_arch: ["native", "aarch64"] | ||||
py_version: ["cp37-*", "cp38-*", "cp39-*", "cp310-*"] | ||||
exclude: | ||||
- os: macos-latest | ||||
cibw_arch: "aarch64" | ||||
- os: windows-latest | ||||
cibw_arch: "aarch64" | ||||
fail-fast: false | fail-fast: false | |||
steps: | steps: | |||
- name: "Checkout repo" | - name: "Checkout repo" | |||
uses: actions/checkout@v3 | uses: actions/checkout@v3 | |||
- name: "Restore RTools40" | - name: "Restore RTools40" | |||
if: startsWith(runner.os, 'Windows') | if: startsWith(runner.os, 'Windows') | |||
id: cache-rtools | id: cache-rtools | |||
uses: actions/cache@v2 | uses: actions/cache@v2 | |||
with: | with: | |||
path: C:/rtools40 | path: C:/rtools40 | |||
key: ${{ runner.os }}-${{ env.OS_VERSION }}-rtools-v1 | key: ${{ runner.os }}-${{ env.OS_VERSION }}-rtools-v1 | |||
- name: Set up QEMU | ||||
if: matrix.cibw_arch == 'aarch64' | ||||
uses: docker/setup-qemu-action@v2 | ||||
with: | ||||
platforms: arm64 | ||||
- name: "Build wheels" | - name: "Build wheels" | |||
uses: pypa/cibuildwheel@v2.6.0 | uses: pypa/cibuildwheel@v2.6.0 | |||
with: | with: | |||
package-dir: python | package-dir: python | |||
env: | env: | |||
CIBW_ENVIRONMENT: > | CIBW_ENVIRONMENT: > | |||
STAN_BACKEND="${{ env.STAN_BACKEND }}" | STAN_BACKEND="${{ env.STAN_BACKEND }}" | |||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 | CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 | |||
CIBW_BUILD: cp37-* cp38-* cp39-* cp310-* | CIBW_BUILD: ${{ matrix.py_version }} | |||
CIBW_SKIP: "*musllinux*" | CIBW_SKIP: "*musllinux*" | |||
CIBW_ARCHS: native | CIBW_ARCHS: ${{ matrix.cibw_arch }} | |||
CIBW_BUILD_FRONTEND: build | CIBW_BUILD_FRONTEND: build | |||
CIBW_TEST_REQUIRES: pytest | CIBW_TEST_REQUIRES: pytest | |||
CIBW_TEST_COMMAND: pytest --pyargs prophet | CIBW_TEST_COMMAND: pytest --pyargs prophet | |||
- name: "Upload wheel as artifact" | - name: "Upload wheel as artifact" | |||
uses: actions/upload-artifact@v3 | uses: actions/upload-artifact@v3 | |||
with: | with: | |||
name: artifact-${{ matrix.os }}-wheel | name: artifact-${{ matrix.os }}-${{ matrix.cibw_arch }}-wheel | |||
path: "./**/*.whl" | path: "./**/*.whl" | |||
make-sdist: | make-sdist: | |||
name: Make source distribution | name: Make source distribution | |||
runs-on: ubuntu-latest | runs-on: ubuntu-latest | |||
steps: | steps: | |||
- uses: actions/checkout@v3 | - uses: actions/checkout@v3 | |||
- run: pipx run build --sdist | - run: pipx run build --sdist | |||
working-directory: python | working-directory: python | |||
End of changes. 6 change blocks. | ||||
4 lines changed or deleted | 17 lines changed or added |