Publish pyscfadlib #20
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: Publish pyscfadlib | |
on: | |
release: | |
types: | |
- released | |
workflow_dispatch: | |
jobs: | |
publish_pypi_linux_x86_aarch64: | |
name: publish linux_x86 wheels to pypi | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: all | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
CIBW_ARCHS_LINUX: x86_64 aarch64 | |
with: | |
package-dir: pyscfadlib | |
output-dir: pyscfadlib/wheelhouse | |
config-file: "{package}/pyproject.toml" | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
packages-dir: pyscfadlib/wheelhouse | |
build_wheel_macos_x86: | |
name: Build macos_x86 wheels | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
MACOSX_DEPLOYMENT_TARGET: "10.14" | |
with: | |
package-dir: pyscfadlib | |
output-dir: pyscfadlib/wheelhouse | |
config-file: "{package}/pyproject.toml" | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cibw_wheels_macos_x86 | |
path: pyscfadlib/wheelhouse/*.whl | |
overwrite: true | |
build_wheel_macos_arm64: | |
name: Build macos_arm64 wheels | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
CMAKE_OSX_ARCHITECTURES: arm64;x86_64 | |
with: | |
package-dir: pyscfadlib | |
output-dir: pyscfadlib/wheelhouse | |
config-file: "{package}/pyproject.toml" | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cibw_wheels_macos_arm64 | |
path: pyscfadlib/wheelhouse/*.whl | |
overwrite: true | |
publish_pypi_macos_x86: | |
name: publish macos_x86 wheels to pypi | |
needs: build_wheel_macos_x86 | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
id-token: write | |
steps: | |
- name: Download wheels | |
uses: actions/download-artifact@v4 | |
with: | |
name: cibw_wheels_macos_x86 | |
path: dist | |
- run: ls -R dist | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
publish_pypi_macos_arm64: | |
name: publish macos_arm64 wheels to pypi | |
needs: build_wheel_macos_arm64 | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
id-token: write | |
steps: | |
- name: Download wheels | |
uses: actions/download-artifact@v4 | |
with: | |
name: cibw_wheels_macos_arm64 | |
path: dist | |
- run: ls -R dist | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |