From 197b681979695849377f66dfdb7896f36c4ad782 Mon Sep 17 00:00:00 2001 From: TheMarpe Date: Wed, 2 Aug 2023 15:39:40 +0200 Subject: [PATCH] Fixed armv6l&armv7l wheels --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6a5fc8563..02343505d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -154,17 +154,17 @@ jobs: run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV - name: Building wheel run: python3 -m pip wheel . -w ./wheelhouse/ --verbose - - name: Auditing wheel - run: for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat linux_armv7l -w wheelhouse/audited/; done - - name: Install tweaked auditwheel and add armv6l tag + - name: Auditing wheels and adding armv6l tag (Running on RPi, binaries compiled as armv6l) run: | - python3 -m pip install git+https://github.com/luxonis/auditwheel@main - for whl in wheelhouse/*.whl; do python3 -m auditwheel addtag -t linux_armv7l linux_armv6l -w wheelhouse/postaudited/ "$whl"; done + for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat linux_armv7l -w wheelhouse/preaudited/; done + for whl in wheelhouse/preaudited/*.whl; do python3 -m wheel tags --platform-tag +linux_armv6l "$whl"; done + mkdir -p wheelhouse/audited/ + for whl in wheelhouse/preaudited/*linux_armv6l*.whl; do cp "$whl" wheelhouse/audited/$(basename $whl); done - name: Archive wheel artifacts uses: actions/upload-artifact@v3 with: name: audited-wheels - path: wheelhouse/postaudited/ + path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true run: bash ./ci/upload-artifactory.sh