Update CHANGES.md #180
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: Deploy | |
on: push | |
jobs: | |
build-linux: | |
name: Build linux Python wheels | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build manylinux Python wheels | |
uses: RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_x86_64 | |
with: | |
python-versions: 'cp36-cp36m cp37-cp37m' | |
- uses: actions/upload-artifact@master | |
with: | |
name: linux-wheels | |
path: dist/*-manylinux*.whl | |
build-windows: | |
name: Build windows Python wheel | |
runs-on: windows-2022 | |
env: | |
CC: cl | |
CXX: cl | |
# CIBW_BUILD_VERBOSITY: 3 | |
steps: | |
- name: Clone UP Fast Downward repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v3 | |
- name: Install cibuildwheel | |
run: python -m pip install cibuildwheel==2.15.0 | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- name: Build 64-bit wheel | |
run: python -m cibuildwheel --output-dir dist | |
env: | |
CIBW_BUILD: cp36-win_amd64 | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: windows-wheel | |
path: dist/*.whl | |
build-mac: | |
name: Build macOS Python wheel | |
runs-on: macOS-11 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v3 | |
- name: Install cibuildwheel | |
run: python -m pip install cibuildwheel==2.15.0 | |
- name: Build wheel | |
run: python -m cibuildwheel --output-dir dist | |
env: | |
CIBW_ARCHS_MACOS: "x86_64 arm64" | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: mac-wheel | |
path: dist/*.whl | |
run-tox-test: | |
name: Test wheels | |
needs: [build-linux, build-mac] | |
runs-on: ${{ matrix.version.os }} | |
strategy: | |
matrix: | |
version: | |
- {os: ubuntu-20.04, python: '3.8'} | |
- {os: ubuntu-22.04, python: '3.10'} | |
- {os: macOS-11, python: '3.10'} | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- uses: actions/download-artifact@master | |
with: | |
name: linux-wheels | |
path: dist | |
- uses: actions/download-artifact@master | |
with: | |
name: mac-wheel | |
path: dist | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.version.python }} | |
- name: Install dependencies | |
run: | | |
pip3 install tox | |
- name: Run basic test | |
run: | | |
cd misc/ | |
PIP_FIND_LINKS='${{ github.workspace }}/dist' tox -e unified-planning | |
run-tox-test-windows: | |
name: Test wheels | |
needs: [build-windows] | |
runs-on: ${{ matrix.version.os }} | |
strategy: | |
matrix: | |
version: | |
- {os: windows-2019, python: '3.8'} | |
- {os: windows-2022, python: '3.10'} | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- uses: actions/download-artifact@master | |
with: | |
name: windows-wheel | |
path: dist | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.version.python }} | |
- name: Install dependencies | |
run: | | |
pip3 install tox | |
- name: Run basic test | |
run: | | |
cd misc/ | |
$env:PIP_FIND_LINKS='${{ github.workspace }}\dist'; tox -e unified-planning | |
deploy-pypi: | |
runs-on: ubuntu-latest | |
needs: [run-tox-test, run-tox-test-windows] | |
if: github.ref == 'refs/heads/main' # We only deploy on master commits | |
steps: | |
- uses: actions/download-artifact@master | |
with: | |
name: linux-wheels | |
path: dist | |
- uses: actions/download-artifact@master | |
with: | |
name: windows-wheel | |
path: dist | |
- uses: actions/download-artifact@master | |
with: | |
name: mac-wheel | |
path: dist | |
- run: ls dist | |
- name: Upload to PyPI | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |