Skip to content

Commit

Permalink
1.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-zehentleitner committed Mar 13, 2024
1 parent 90498b4 commit 4c52d5e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
42 changes: 28 additions & 14 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- 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/[email protected]
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
Expand All @@ -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:
Expand Down Expand Up @@ -82,4 +96,4 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create PyPi Release
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion .github/workflows/build_wheels_orig.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Publish GH+PyPif Alt
name: Build and Publish GH+PyPi Alt

on:
workflow_dispatch:
Expand Down

0 comments on commit 4c52d5e

Please sign in to comment.