-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90498b4
commit 4c52d5e
Showing
2 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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
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: | ||
|