Skip to content

Commit 197b681

Browse files
committed
Fixed armv6l&armv7l wheels
1 parent 93bdcbb commit 197b681

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,17 @@ jobs:
154154
run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV
155155
- name: Building wheel
156156
run: python3 -m pip wheel . -w ./wheelhouse/ --verbose
157-
- name: Auditing wheel
158-
run: for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat linux_armv7l -w wheelhouse/audited/; done
159-
- name: Install tweaked auditwheel and add armv6l tag
157+
- name: Auditing wheels and adding armv6l tag (Running on RPi, binaries compiled as armv6l)
160158
run: |
161-
python3 -m pip install git+https://github.com/luxonis/auditwheel@main
162-
for whl in wheelhouse/*.whl; do python3 -m auditwheel addtag -t linux_armv7l linux_armv6l -w wheelhouse/postaudited/ "$whl"; done
159+
for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat linux_armv7l -w wheelhouse/preaudited/; done
160+
for whl in wheelhouse/preaudited/*.whl; do python3 -m wheel tags --platform-tag +linux_armv6l "$whl"; done
161+
mkdir -p wheelhouse/audited/
162+
for whl in wheelhouse/preaudited/*linux_armv6l*.whl; do cp "$whl" wheelhouse/audited/$(basename $whl); done
163163
- name: Archive wheel artifacts
164164
uses: actions/upload-artifact@v3
165165
with:
166166
name: audited-wheels
167-
path: wheelhouse/postaudited/
167+
path: wheelhouse/audited/
168168
- name: Deploy wheels to artifactory (if not a release)
169169
if: startsWith(github.ref, 'refs/tags/v') != true
170170
run: bash ./ci/upload-artifactory.sh

0 commit comments

Comments
 (0)