From 57214a76acd4696bd70931666d389ab43220cce2 Mon Sep 17 00:00:00 2001 From: ekneg54 Date: Tue, 10 Sep 2024 09:22:57 +0200 Subject: [PATCH] build wheels --- .github/workflows/ci.yml | 18 ++++++++++++++--- .github/workflows/publish-release-to-pypi.yml | 20 ++++++++++++++----- 2 files changed, 30 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57c2bcafe..36ce95bd5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,8 +102,8 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - name: Install Python + - name: Initialize Python + uses: actions/setup-python@v1 with: python-version: "3.11" @@ -116,7 +116,19 @@ jobs: run: python -m pip install cibuildwheel - name: Build wheels - run: python -m cibuildwheel --output-dir wheelhouse --platform linux --archs ${{ matrix.arch }} + run: python -m cibuildwheel --output-dir wheelhouse + + - name: Build binary wheel and a source tarball + run: pipx run build --sdist + + - name: copy artifacts to dist folder + run: cp ./wheelhouse/* ./dist/ + + - name: Upload Artifact for next job + uses: actions/upload-artifact@master + with: + name: logprep-build + path: dist containerbuild: strategy: diff --git a/.github/workflows/publish-release-to-pypi.yml b/.github/workflows/publish-release-to-pypi.yml index e9cfe1815..8f2511a73 100644 --- a/.github/workflows/publish-release-to-pypi.yml +++ b/.github/workflows/publish-release-to-pypi.yml @@ -14,14 +14,24 @@ jobs: - name: Initialize Python uses: actions/setup-python@v1 with: - python-version: "3.10" + python-version: "3.11" - - name: Install dependencies - run: | - python -m pip install --upgrade pip wheel + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + with: + platforms: all + + - name: Install cibuildwheel + run: python -m pip install cibuildwheel + + - name: Build wheels + run: python -m cibuildwheel --output-dir wheelhouse - name: Build binary wheel and a source tarball - run: pip wheel --no-deps --wheel-dir ./dist . + run: pipx run build --sdist + + - name: copy artifacts to dist folder + run: cp ./wheelhouse/* ./dist/ - name: Upload Artifact for next job uses: actions/upload-artifact@master