From bfbf2bcc2683e733292f2229bcf5cde74cf79589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rennfanz=2C=20Bj=C3=B6rn?= Date: Wed, 4 Dec 2024 14:45:51 +0100 Subject: [PATCH] get python running on arm emulation. --- .github/workflows/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2339646..3f888b3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -304,7 +304,7 @@ jobs: run: | if [[ "$(uname -m)" != "aarch64" ]]; then sudo apt-get update - sudo apt-get install -y qemu-user-static + sudo apt-get install -y qemu-user-static binfmt-support docker run --rm --privileged multiarch/qemu-user-static:register --reset fi @@ -328,7 +328,13 @@ jobs: path: pypylon-wheels - name: Set up Python ${{ matrix.python-version }} + if: runner.os != 'Linux' && matrix.architecture != 'arm64' uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} architecture: ${{ matrix.architecture }} + + - name: Set up Python ${{ matrix.python-version }} (Docker) + if: runner.os == 'Linux' && matrix.architecture == 'arm64' + run: | + docker run --rm --it python:${{ matrix.python-version }}-slim /bin/bash -c "python --version"