From 7ac5e881016c30bb8ccdea2120f904b9c510d804 Mon Sep 17 00:00:00 2001 From: Rot127 Date: Fri, 16 Aug 2024 05:42:48 -0500 Subject: [PATCH] Remove duplicate workflow file --- .github/workflows/python-publish.yml | 85 ---------------------------- 1 file changed, 85 deletions(-) delete mode 100644 .github/workflows/python-publish.yml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml deleted file mode 100644 index 7fbf039e34..0000000000 --- a/.github/workflows/python-publish.yml +++ /dev/null @@ -1,85 +0,0 @@ -name: PyPI 📦 Distribution - -on: [push, pull_request] - -jobs: - build_wheels: - name: Build wheels on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - steps: - - uses: actions/checkout@v3 - - - name: Set up MSVC x64 - if: matrix.os == 'windows-latest' - uses: ilammy/msvc-dev-cmd@v1 - - - name: Set up QEMU - if: runner.os == 'Linux' - uses: docker/setup-qemu-action@v2 - with: - platforms: all - - - name: Build wheels - uses: pypa/cibuildwheel@v2.16.5 - env: - CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" - CIBW_ARCHS_LINUX: "x86_64 i686 aarch64" # ppc64le s390x really slow - CIBW_ARCHS_WINDOWS: "AMD64 x86" # ARM64 Seems ARM64 will rebuild amd64 wheel for unknow reason. - CIBW_BUILD: "cp38-macosx* cp310-macosx* cp312-macosx* \ - cp38-win* cp310-win_amd64 cp312-win_amd64 \ - cp38-manylinux* cp310-manylinux_x86_64 \ - cp312-manylinux_x86_64 cp312-manylinux_aarch64" - CIBW_SKIP: "" - with: - package-dir: bindings/python - - - uses: actions/upload-artifact@v3 - with: - path: ./wheelhouse/*.whl - - make_sdist: - name: Make SDist - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 # Optional, use if you use setuptools_scm - submodules: true # Optional, use if you have submodules - - - name: Build SDist - run: | - cd bindings/python - pipx run build --sdist - - - uses: actions/upload-artifact@v3 - with: - path: bindings/python/dist/*.tar.gz - - publish: - needs: [build_wheels] - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags') - permissions: - id-token: write - steps: - - uses: actions/download-artifact@v3 - with: - name: artifact - path: dist - - # - name: Publish distribution 📦 to test PyPI - # uses: pypa/gh-action-pypi-publish@release/v1 - # with: - # user: __token__ - # password: ${{ secrets.test_pypi_pass }} - # repository_url: https://test.pypi.org/legacy/ - - - name: Publish distribution 📦 to PyPI - if: ${{ success() }} - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.pypi_pass }}