1+ # ┌─────────────────────────────────────────────────────────────────┐
2+ # │ IMPORTANT: This file MUST stay in sync with │
3+ # │ emu-python-wheels.yml. The only difference between the two │
4+ # │ files should be the cisco-actions/* mirror references. │
5+ # │ Do NOT accept PRs where these files diverge in any other way. │
6+ # └─────────────────────────────────────────────────────────────────┘
17name : " [PUB] Python Wheels"
28
39on :
1824 strategy :
1925 matrix :
2026 os : [ubuntu-latest, macos-latest]
21- env :
22- CIBW_ARCHS_LINUX : aarch64 x86_64
23- CIBW_ARCHS_MACOS : arm64
24- CIBW_SKIP : " *-musllinux_* pp* cp38* cp37* cp36*"
25- CIBW_BEFORE_ALL_LINUX : (yum install -y epel-release && yum install -y openssl-devel make zlib-devel xsimd-devel) || apt-get install -y zlib1g-dev libssl-dev make libxsimd-dev || apk add --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community zlib-dev openssl-dev make xsimd-dev
26- CIBW_BEFORE_ALL_MACOS : brew install openssl zlib xsimd
27- CIBW_TEST_COMMAND : cd {project} && python mercury_python_test.py
2827
2928 steps :
3029 - uses : actions/checkout@v6
@@ -46,32 +45,26 @@ jobs:
4645 python-version : ' 3.x'
4746
4847 - name : Set up QEMU
49- if : runner.os == 'Linux' && vars.USE_INTERNAL_ACTIONS != 'true'
48+ if : runner.os == 'Linux'
5049 uses : docker/setup-qemu-action@v4.0.0
5150 with :
5251 platforms : all
5352
54- - name : Set up QEMU (GitHub EMU)
55- if : runner.os == 'Linux' && vars.USE_INTERNAL_ACTIONS == 'true'
56- uses : cisco-actions/docker-setup-qemu-action@v4.0.0
57- with :
58- platforms : all
59-
6053 - name : Install pip packages
6154 run : python -m pip install cython
6255
6356 - name : Build Mercury
6457 run : ./configure && make && cp -r src/cython/* ./
6558
6659 - name : Build wheels
67- if : vars.USE_INTERNAL_ACTIONS != 'true'
6860 uses : pypa/cibuildwheel@v3.4.0
69- # CIBW_* configuration is in the job-level env block above
70-
71- - name : Build wheels (GitHub EMU)
72- if : vars.USE_INTERNAL_ACTIONS == 'true'
73- uses : cisco-actions/pypa-cibuildwheel@v3.4.0
74- # CIBW_* configuration is in the job-level env block above
61+ env :
62+ CIBW_ARCHS_LINUX : aarch64 x86_64
63+ CIBW_ARCHS_MACOS : arm64
64+ CIBW_SKIP : " *-musllinux_* pp* cp38* cp37* cp36*"
65+ CIBW_BEFORE_ALL_LINUX : (yum install -y epel-release && yum install -y openssl-devel make zlib-devel xsimd-devel) || apt-get install -y zlib1g-dev libssl-dev make libxsimd-dev || apk add --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community zlib-dev openssl-dev make xsimd-dev
66+ CIBW_BEFORE_ALL_MACOS : brew install openssl zlib xsimd
67+ CIBW_TEST_COMMAND : cd {project} && python mercury_python_test.py
7568
7669 - name : Upload to S3
7770 if : vars.UPLOAD_PYTHON_WHEELS_TO_S3 == 'true'
0 commit comments