File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Expand file tree Collapse file tree 2 files changed +55
-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
+ if not args .wheels :
10
+ ap .error ("At least one wheel must be provided." )
11
+ for whl in args .wheels :
12
+ print (f"### `{ whl } `" )
13
+
14
+ audit_wheel_output = subprocess .run (
15
+ ["auditwheel" , "show" , whl ],
16
+ capture_output = True ,
17
+ text = True ,
18
+ errors = "backslashreplace" ,
19
+ )
20
+
21
+ if audit_wheel_output .stdout :
22
+ print (audit_wheel_output .stdout )
23
+
24
+ if audit_wheel_output .stderr :
25
+ print (f"**Error:**\n ```{ audit_wheel_output .stderr } ```" )
26
+
27
+ print ("---" )
28
+
29
+
30
+ if __name__ == "__main__" :
31
+ main ()
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
@@ -147,3 +151,23 @@ jobs:
147
151
name : bdist_wheel_${{ matrix.os }}_${{ matrix.arch }}
148
152
path : dist/bitsandbytes-*.whl
149
153
retention-days : 7
154
+
155
+ audit-wheels :
156
+ needs : build-wheels
157
+ runs-on : ubuntu-latest
158
+ env :
159
+ PIP_DISABLE_PIP_VERSION_CHECK : 1
160
+ steps :
161
+ - uses : actions/checkout@v4
162
+ - name : Download all wheels
163
+ uses : actions/download-artifact@v4
164
+ with :
165
+ merge-multiple : true
166
+ pattern : " bdist_wheel_*"
167
+ path : wheels/
168
+ - name : Set up Python
169
+ uses : actions/setup-python@v5
170
+ with :
171
+ python-version : " 3.12"
172
+ - run : pip install auditwheel
173
+ - run : python ./.github/scripts/auditwheel_show.py wheels/* | tee $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments