@@ -40,49 +40,10 @@ jobs:
4040 path : ./wheelhouse/*.whl
4141 retention-days : 30
4242
43- build_wheels_aarch64 :
44- name : Build aarch64 wheels
45- runs-on : ubuntu-latest
46- timeout-minutes : 180
47- continue-on-error : true
48-
49- steps :
50- - name : Checkout repository
51- uses : actions/checkout@v4
52-
53- - name : Set up QEMU
54- uses : docker/setup-qemu-action@v3
55- with :
56- platforms : arm64
57-
58- - name : Clone dlib
59- run : |
60- git clone --depth 1 https://github.com/davisking/dlib.git dlib_src
61-
62- - name : Build aarch64 wheels
63- uses : pypa/cibuildwheel@v2.21.0
64- with :
65- package-dir : dlib_src
66- env :
67- CIBW_BUILD : cp310-* cp311-* cp312-*
68- CIBW_ARCHS_LINUX : aarch64
69- CIBW_BEFORE_ALL_LINUX : >
70- yum install -y cmake3 boost-devel openblas-devel
71- lapack-devel git gcc gcc-c++ make
72- CIBW_ENVIRONMENT : " CXXFLAGS='-O2 -g0'"
73-
74- - name : Upload aarch64 artifacts
75- uses : actions/upload-artifact@v4
76- if : success()
77- with :
78- name : wheels-aarch64
79- path : ./wheelhouse/*.whl
80- retention-days : 30
81-
8243 release :
8344 runs-on : ubuntu-latest
84- needs : [build_wheels_x86, build_wheels_aarch64 ]
85- if : always() && startsWith(github.ref, 'refs/tags/') && needs.build_wheels_x86.result == 'success'
45+ needs : [build_wheels_x86]
46+ if : startsWith(github.ref, 'refs/tags/')
8647 permissions :
8748 contents : write
8849
@@ -98,28 +59,17 @@ jobs:
9859 find artifacts -name "*.whl" -exec cp {} wheels/ \;
9960 echo "Built wheels:"
10061 ls -lh wheels/
101-
102- # Count architectures
103- x86_count=$(find wheels -name "*x86_64*.whl" | wc -l)
104- aarch64_count=$(find wheels -name "*aarch64*.whl" | wc -l)
105- echo "x86_64 wheels: $x86_count"
106- echo "aarch64 wheels: $aarch64_count"
10762
10863 - name : Create Release
10964 uses : softprops/action-gh-release@v2
11065 with :
11166 name : Release ${{ github.ref_name }}
11267 body : |
113- Prebuilt dlib wheels for Linux on Python 3.10, 3.11, and 3.12
68+ Prebuilt dlib wheels for Linux x86_64 on Python 3.10, 3.11, and 3.12
11469
11570 **Installation:**
11671 ```pip install dlib-*.whl```
117-
118- Choose the wheel that matches your:
119- - Python version (cp310, cp311, or cp312)
120- - Architecture (x86_64 or aarch64, if available)
121-
122- Note: aarch64 wheels may not be available if the build timed out.
72+ Choose the wheel that matches your Python version (cp310, cp311, or cp312)
12373 files : wheels/*.whl
12474 draft : false
12575 prerelease : false
0 commit comments