@@ -104,50 +104,27 @@ jobs:
104
104
path : wheelhouse/*.whl
105
105
106
106
build_wheels_manylinux_arm64 :
107
- name : Build manylinux wheels (ARM64 )
107
+ name : Build manylinux wheels (arm64 )
108
108
runs-on : ubuntu-24.04
109
- strategy :
110
- matrix :
111
- python-version : ["cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*"]
112
109
steps :
113
110
- name : Checkout repository
114
111
uses : actions/checkout@v4
115
-
112
+
116
113
# Register QEMU for cross-architecture emulation
117
114
- name : Set up QEMU for cross-compilation
118
115
uses : docker/setup-qemu-action@v2
119
116
with :
120
- platforms : all # Ensures ARM64 is fully supported
121
-
122
- - name : Debug - Test ManyLinux Container
123
- run : |
124
- echo "Testing uname -a inside the container..."
125
- docker run --rm --platform linux/aarch64 quay.io/pypa/manylinux_2_28_aarch64 uname -a
126
-
127
- echo "Testing Python inside the container..."
128
- docker run --rm --platform linux/aarch64 quay.io/pypa/manylinux_2_28_aarch64 python3 --version
129
-
130
- - name : Install cibuildwheel
131
- run : |
132
- python -m pip install --upgrade pip
133
- pip install cibuildwheel
134
-
135
- - name : Build wheels with cibuildwheel
136
- env :
137
- CIBW_PLATFORM : " linux"
138
- CIBW_BUILD : ${{ matrix.python-version }}
139
- CIBW_ARCHS_LINUX : " aarch64"
140
- CIBW_MANYLINUX_AARCH64_IMAGE : " quay.io/pypa/manylinux_2_28_aarch64"
141
- CIBW_ENVIRONMENT : " CXXFLAGS='-g -O2 -fno-omit-frame-pointer'"
142
- CIBW_BUILD_VERBOSITY : 3
143
- run : |
144
- cibuildwheel --output-dir wheelhouse
145
-
146
- - name : upload wheels
147
- uses : actions/upload-artifact@v4
117
+ platforms : arm64
118
+
119
+ # Build manylinux Python wheels for arm64 architecture
120
+ - name : Build manylinux Python wheels (arm64)
121
+ uses : RalfG/python-wheels-manylinux-build@v0.7.1-manylinux2014_aarch64
148
122
with :
149
- name : wheels-linux-arm64-${{ matrix.python-version }}-${{ github.run_id }}
150
- path : wheelhouse/*.whl
151
-
152
-
153
-
123
+ python-versions : ' cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312'
124
+ build-requirements : ' setuptools'
125
+
126
+ - name : Upload arm64 wheels
127
+ uses : actions/upload-artifact@v3
128
+ with :
129
+ path : ./dist/*-manylinux*.whl
130
+ name : wheels-arm64
0 commit comments