Give it a shot #82
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: Python-Wheels | ||
on: | ||
push: | ||
branches: [ $default-branch, master, python ] | ||
permissions: write-all | ||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Release | ||
VTK_VERSION_MAJOR: "9" | ||
VTK_VERSION_MINOR: "3" | ||
VTK_VERSION_PATCH: "1" | ||
jobs: | ||
build_wheels: | ||
name: Build Python wheels x86_64 | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# Used to host cibuildwheel | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
- name: Create setup.py | ||
run: | | ||
mv wrappers/python/wheels.github/* ./ | ||
python set_version.py | ||
python set_eigen_data.py | ||
rm set_version.py set_eigen_data.py | ||
cat pyproject.toml | ||
shell: bash | ||
- name: Build the source distribution | ||
run: | | ||
python -m pip install -U pip setuptools | ||
python setup.py sdist | ||
- uses: actions/upload-artifact@v4 | ||
id: build_wheels | ||
with: | ||
name: python-wheels-sdist | ||
path: ./dist/* | ||
build_Linux_x86_64: | ||
name: Build Linux_x86_64 | ||
uses: core-marine-dev/MoorDyn/.github/workflows/python-wheels-emulated.yml@python | ||
with: | ||
os: '["ubuntu-22.04"]' | ||
arch: "x86_64" | ||
vtk_major: ${{env.VTK_VERSION_MAJOR}} | ||
Check failure on line 58 in .github/workflows/python-wheels.yml GitHub Actions / Python-WheelsInvalid workflow file
|
||
vtk_minor: ${{env.VTK_VERSION_MINOR}} | ||
vtk_patch: ${{env.VTK_VERSION_PATCH}} | ||
secrets: inherit | ||
build_Windows_AMD64: | ||
name: Build Windows_AMD64 | ||
uses: core-marine-dev/MoorDyn/.github/workflows/python-wheels-emulated.yml@python | ||
with: | ||
os: '["windows-latest"]' | ||
arch: "AMD64" | ||
vtk_major: "${{env.VTK_VERSION_MAJOR}}" | ||
vtk_minor: "${{env.VTK_VERSION_MINOR}}" | ||
vtk_patch: "${{env.VTK_VERSION_PATCH}}" | ||
secrets: inherit | ||
build_MacOS_x86_64: | ||
name: Build MacOS_x86_64 | ||
uses: core-marine-dev/MoorDyn/.github/workflows/python-wheels-emulated.yml@python | ||
with: | ||
os: '["macOS-13"]' | ||
arch: "x86_64" | ||
vtk_major: "${{env.VTK_VERSION_MAJOR}}" | ||
vtk_minor: "${{env.VTK_VERSION_MINOR}}" | ||
vtk_patch: "${{env.VTK_VERSION_PATCH}}" | ||
secrets: inherit | ||
build_MacOS_arm64: | ||
name: Build MacOS_arm64 | ||
uses: core-marine-dev/MoorDyn/.github/workflows/python-wheels-emulated.yml@python | ||
with: | ||
os: '["macOS-14"]' | ||
arch: "arm64" | ||
vtk_major: "${{env.VTK_VERSION_MAJOR}}" | ||
vtk_minor: "${{env.VTK_VERSION_MINOR}}" | ||
vtk_patch: "${{env.VTK_VERSION_PATCH}}" | ||
secrets: inherit | ||
build_Linux_i686: | ||
name: Build Linux_i686 | ||
uses: core-marine-dev/MoorDyn/.github/workflows/python-wheels-emulated.yml@python | ||
with: | ||
os: '["ubuntu-22.04"]' | ||
arch: "i686" | ||
vtk_major: "${{env.VTK_VERSION_MAJOR}}" | ||
vtk_minor: "${{env.VTK_VERSION_MINOR}}" | ||
vtk_patch: "${{env.VTK_VERSION_PATCH}}" | ||
secrets: inherit | ||
build_Linux_aarch64: | ||
name: Build Linux_aarch64 | ||
uses: core-marine-dev/MoorDyn/.github/workflows/python-wheels-emulated.yml@python | ||
with: | ||
os: '["ubuntu-22.04"]' | ||
arch: "aarch64" | ||
vtk_major: "${{env.VTK_VERSION_MAJOR}}" | ||
vtk_minor: "${{env.VTK_VERSION_MINOR}}" | ||
vtk_patch: "${{env.VTK_VERSION_PATCH}}" | ||
secrets: inherit | ||
build_Linux_ppc64le: | ||
name: Build Linux_ppc64le | ||
uses: core-marine-dev/MoorDyn/.github/workflows/python-wheels-emulated.yml@python | ||
with: | ||
os: '["ubuntu-22.04"]' | ||
arch: "ppc64le" | ||
vtk_major: "${{env.VTK_VERSION_MAJOR}}" | ||
vtk_minor: "${{env.VTK_VERSION_MINOR}}" | ||
vtk_patch: "${{env.VTK_VERSION_PATCH}}" | ||
secrets: inherit | ||
build_Linux_s390x: | ||
name: Build Linux_s390x | ||
uses: core-marine-dev/MoorDyn/.github/workflows/python-wheels-emulated.yml@python | ||
with: | ||
os: '["ubuntu-22.04"]' | ||
arch: "s390x" | ||
vtk_major: "${{env.VTK_VERSION_MAJOR}}" | ||
vtk_minor: "${{env.VTK_VERSION_MINOR}}" | ||
vtk_patch: "${{env.VTK_VERSION_PATCH}}" | ||
secrets: inherit | ||
test_Linux_x86_64: | ||
name: Test Linux_x86_64 | ||
needs: [build_Linux_x86_64] | ||
uses: core-marine-dev/MoorDyn/.github/workflows/python-wheels-test.yml@python | ||
with: | ||
os: '["ubuntu-22.04"]' | ||
arch: "x86_64" | ||
secrets: inherit | ||
test_Windows_AMD64: | ||
name: Test Windows_AMD64 | ||
needs: [build_Windows_AMD64] | ||
uses: core-marine-dev/MoorDyn/.github/workflows/python-wheels-test.yml@python | ||
with: | ||
os: '["windows-latest"]' | ||
arch: "AMD64" | ||
secrets: inherit | ||
test_MacOS_arm64: | ||
name: Test MacOS_arm64 | ||
needs: [build_MacOS_arm64] | ||
uses: core-marine-dev/MoorDyn/.github/workflows/python-wheels-test.yml@python | ||
with: | ||
os: '["macOS-14"]' | ||
arch: "arm64" | ||
secrets: inherit | ||
publish: | ||
runs-on: ${{ matrix.os }} | ||
needs: [build_wheels, build_Linux_x86_64, build_Windows_AMD64, build_MacOS_x86_64, build_MacOS_arm64, build_Linux_i686, build_Linux_aarch64, build_Linux_ppc64le, build_Linux_s390x, test_Linux_x86_64, test_Windows_AMD64, test_MacOS_arm64] | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: dist/ | ||
pattern: python-wheels-* | ||
merge-multiple: true | ||
# - name: Publish package to PyPI | ||
# uses: pypa/gh-action-pypi-publish@release/v1 | ||
# with: | ||
# # password: ${{ secrets.MOORDYN_TESTPYPI_API }} | ||
# # repository-url: https://test.pypi.org/legacy/ | ||
# password: ${{ secrets.MOORDYN_PYPI_API }} | ||
# repository-url: https://upload.pypi.org/legacy/ | ||
# skip-existing: true |