diff --git a/.github/scripts/auditwheel_show.py b/.github/scripts/auditwheel_show.py new file mode 100755 index 000000000..13b3ba4ba --- /dev/null +++ b/.github/scripts/auditwheel_show.py @@ -0,0 +1,25 @@ +import argparse +import subprocess + + +def main(): + ap = argparse.ArgumentParser() + ap.add_argument("wheels", nargs="*") + args = ap.parse_args() + for whl in args.wheels: + print(f"### `{whl}`") + + audit_wheel_output = subprocess.run( + ["auditwheel", "show", whl], + capture_output=True, + text=True, + errors="backslashreplace", + ) + + if audit_wheel_output.stdout: + print(audit_wheel_output.stdout) + + if audit_wheel_output.stderr: + print(f"**Error:**\n```{audit_wheel_output.stderr}```") + + print("---") diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3fa5205cc..e42ab8087 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -35,6 +35,8 @@ jobs: exclude: - os: windows-latest # This probably requires arm64 Windows agents arch: aarch64 + - os: ubuntu-latest # Temporary. Takes too long, not ready yet. + arch: aarch64 runs-on: ${{ matrix.os }} # One day, we could run them on native agents. Azure supports this now but it's planned only for Q3 2023 for hosted agents steps: - uses: actions/checkout@v4 @@ -114,6 +116,8 @@ jobs: exclude: - os: windows-latest # This probably requires arm64 Windows agents arch: aarch64 + - os: ubuntu-latest # Temporary. Takes too long, not ready yet. + arch: aarch64 runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -175,3 +179,23 @@ jobs: - run: ls -lar wheel/ - run: pip install wheel/*.whl -r requirements-ci.txt - run: pytest --log-cli-level=DEBUG tests + + audit-wheels: + needs: build-wheels + runs-on: ubuntu-latest + env: + PIP_DISABLE_PIP_VERSION_CHECK: 1 + steps: + - uses: actions/checkout@v4 + - name: Download all wheels + uses: actions/download-artifact@v4 + with: + merge-multiple: true + pattern: "bdist_wheel_*" + path: wheels/ + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + - run: pip install auditwheel + - run: python ./.github/scripts/auditwheel_show.py wheels/* | tee $GITHUB_STEP_SUMMARY