From 4c52d5ea5fba2f94848b581dfb5c95a69439a4ae Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 14 Mar 2024 00:09:56 +0100 Subject: [PATCH] 1.14.0 --- .github/workflows/build_wheels.yml | 42 ++++++++++++++++--------- .github/workflows/build_wheels_orig.yml | 2 +- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 596aa21..d8d337d 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -8,29 +8,43 @@ on: jobs: build_wheels: name: Build wheels on ${{ matrix.os }} - runs-on: ubuntu-latest # Ändern zu ubuntu-latest, da wir Docker verwenden + runs-on: ${{ matrix.os }} strategy: matrix: - os: [ "manylinux2014_aarch64" ] # Zielplattform für ARM-Architektur - services: - docker: - image: docker://multiarch/qemu-user-static:latest - options: --privileged + os: [ubuntu-20.04, windows-2019, macos-11] + steps: + - name: GitHub Checkout + uses: actions/checkout@v4 + + - name: Build wheels + uses: pypa/cibuildwheel@v2.16.2 + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + path: ./wheelhouse/*.whl + + build_wheels_raspberry: + name: Build wheels for Raspberry Pi + runs-on: ubuntu-latest steps: - name: GitHub Checkout uses: actions/checkout@v4 - name: Set up QEMU - run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + run: | + sudo apt-get update + sudo apt-get install -y qemu qemu-user-static qemu-user binfmt-support + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - - name: Build wheels + - name: Build wheels with QEMU uses: pypa/cibuildwheel@v2.16.2 env: - CIBW_ARCHS_LINUX: aarch64 # Setzen der Architektur auf ARM64 - CIBW_MANYLINUX_AARCH64_IMAGE: quay.io/pypa/manylinux2014_aarch64 # Verwenden des manylinux-Images für ARM64 - CIBW_SKIP: "*-win32 *-manylinux_i686 *-macosx_* *-manylinux_x86_64" # Überspringen nicht relevanter Builds + CIBW_ARCHS_LINUX: "arm64 armv7l" + CIBW_MANYLINUX_AARCH64_IMAGE: "quay.io/pypa/manylinux2014_aarch64" + CIBW_MANYLINUX_ARMV7L_IMAGE: "quay.io/pypa/manylinux2014_armv7l" - - name: Upload Artifacts + - name: Upload Raspberry Pi Wheels uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl @@ -51,7 +65,7 @@ jobs: path: dist/*.tar.gz Release: - needs: [ build_wheels, build_sdist ] + needs: [build_wheels, build_wheels_raspberry, build_sdist] runs-on: ubuntu-latest environment: pypi permissions: @@ -82,4 +96,4 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: Create PyPi Release - uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/build_wheels_orig.yml b/.github/workflows/build_wheels_orig.yml index a7cd494..5470fd3 100644 --- a/.github/workflows/build_wheels_orig.yml +++ b/.github/workflows/build_wheels_orig.yml @@ -1,4 +1,4 @@ -name: Build and Publish GH+PyPif Alt +name: Build and Publish GH+PyPi Alt on: workflow_dispatch: