File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ import argparse
2
+ import subprocess
3
+
4
+
5
+ def main ():
6
+ ap = argparse .ArgumentParser ()
7
+ ap .add_argument ("wheels" , nargs = "*" )
8
+ args = ap .parse_args ()
9
+ for whl in args .wheels :
10
+ print (f"### `{ whl } `" )
11
+
12
+ audit_wheel_output = subprocess .run (
13
+ ["auditwheel" , "show" , whl ],
14
+ capture_output = True ,
15
+ text = True ,
16
+ errors = "backslashreplace" ,
17
+ )
18
+
19
+ if audit_wheel_output .stdout :
20
+ print (audit_wheel_output .stdout )
21
+
22
+ if audit_wheel_output .stderr :
23
+ print (f"**Error:**\n ```{ audit_wheel_output .stderr } ```" )
24
+
25
+ print ("---" )
Original file line number Diff line number Diff line change 35
35
exclude :
36
36
- os : windows-latest # This probably requires arm64 Windows agents
37
37
arch : aarch64
38
+ - os : ubuntu-latest # Temporary. Takes too long, not ready yet.
39
+ arch : aarch64
38
40
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
39
41
steps :
40
42
- uses : actions/checkout@v4
@@ -114,6 +116,8 @@ jobs:
114
116
exclude :
115
117
- os : windows-latest # This probably requires arm64 Windows agents
116
118
arch : aarch64
119
+ - os : ubuntu-latest # Temporary. Takes too long, not ready yet.
120
+ arch : aarch64
117
121
runs-on : ${{ matrix.os }}
118
122
steps :
119
123
- uses : actions/checkout@v4
@@ -175,3 +179,24 @@ jobs:
175
179
cache : pip
176
180
- run : pip install wheel/*.whl -r requirements-ci.txt
177
181
- run : pytest --log-cli-level=DEBUG tests
182
+
183
+ audit-wheels :
184
+ needs : build-wheels
185
+ runs-on : ubuntu-latest
186
+ env :
187
+ PIP_DISABLE_PIP_VERSION_CHECK : 1
188
+ steps :
189
+ - uses : actions/checkout@v4
190
+ - name : Download all wheels
191
+ uses : actions/download-artifact@v4
192
+ with :
193
+ merge-multiple : true
194
+ pattern : " bdist_wheel_*"
195
+ path : wheels/
196
+ - name : Set up Python
197
+ uses : actions/setup-python@v5
198
+ with :
199
+ python-version : " 3.12"
200
+ - run : |
201
+ pip install auditwheel
202
+ python ./.github/auditwheel_show.py wheels/* | tee $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments