Skip to content

Commit 826d863

Browse files
committed
Chore: add linux arm64 wheels
1 parent a791b14 commit 826d863

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

.github/workflows/build_wheels.yml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,53 @@ jobs:
6464
path: dist/*.whl
6565
retention-days: 1
6666

67-
build_wheels_apple_silicon:
67+
build_wheels_linux_arm64:
68+
name: Build wheels on ${{ matrix.os }}
69+
runs-on: ${{ matrix.os }}
70+
strategy:
71+
matrix:
72+
os: [ubuntu-22.04]
73+
cibw_archs: ["aarch64"]
74+
cibw_build: ["cp39", "cp310", "cp311", "cp312", "cp313"]
75+
76+
steps:
77+
- uses: actions/checkout@v4
78+
79+
- name: Set up QEMU
80+
uses: docker/setup-qemu-action@v3
81+
with:
82+
platforms: arm64
83+
84+
- name: Set up Python
85+
uses: actions/setup-python@v5
86+
with:
87+
python-version: '3.10'
88+
89+
- name: Build wheels using cibuildwheel
90+
uses: pypa/[email protected]
91+
env:
92+
CIBW_SKIP: "*-musllinux*"
93+
CIBW_BUILD: ${{ matrix.cibw_build }}-*
94+
CIBW_BUILD_VERBOSITY: 3
95+
CIBW_BEFORE_ALL_LINUX: bash ci-utils/install_prereq_linux.sh &&
96+
mkdir -p /tmp/filepattern_bld &&
97+
cp -r local_install /tmp/filepattern_bld
98+
CIBW_ENVIRONMENT_LINUX: LD_LIBRARY_PATH="/tmp/filepattern_bld/local_install/lib:/tmp/filepattern_bld/local_install/lib64:$LD_LIBRARY_PATH" ON_GITHUB="TRUE" FILEPATTERN_DEP_DIR="/tmp/filepattern_bld/local_install"
99+
CIBW_ARCHS_LINUX: ${{ matrix.cibw_archs }}
100+
CIBW_TEST_REQUIRES: pytest pydantic
101+
CIBW_TEST_COMMAND: pytest {project}/tests/
102+
with:
103+
package-dir: .
104+
105+
- name: Upload Artifact
106+
uses: actions/upload-artifact@v4
107+
with:
108+
name: filepattern-wheels-${{ matrix.os }}-${{ matrix.cibw_archs }}-${{ matrix.cibw_build }}
109+
path: dist/*.whl
110+
retention-days: 1
111+
112+
113+
build_wheels_apple_arm64:
68114
name: Build wheels on ${{ matrix.os }}
69115
runs-on: ${{ matrix.os }}
70116
env:

0 commit comments

Comments
 (0)