8000 Merge branch 'main' into circle-aarch64 · pypa/cibuildwheel@76b3bfc · GitHub
[go: up one dir, main page]

Skip to content

Commit 76b3bfc

Browse files
authored
Merge branch 'main' into circle-aarch64
2 parents b34af8d + d7f615a commit 76b3bfc

File tree

5 files changed

+57
-2
lines changed

5 files changed

+57
-2
lines changed

.gitlab-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,16 @@ linux:
1717
- curl -sSL https://get.docker.com/ | sh
1818
- python -m pip install -e ".[dev]" pytest-custom-exit-code
1919
- python ./bin/run_tests.py
20+
21+
windows:
22+
image: mcr.microsoft.com/windows/servercore:1809
23+
variables:
24+
PYTEST_ADDOPTS: -k "unit_test or test_0_basic" --suppress-no-test-exit-code
25+
before_script:
26+
- choco install python -y --version 3.8.6
27+
script:
28+
- py -m cibuildwheel --output-dir wheelhouse --platform windows
29+
- py -m pip install -e ".[dev]" pytest-custom-exit-code
30+
- py bin\run_tests.py
31+
tags:
32+
- windows

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Usage
5858
| Travis CI || ||| | |
5959
| AppVeyor |||| | ✅² | ✅⁴ |
6060
| CircleCI ||| || ✅² | |
61-
| Gitlab CI || | | | | |
61+
| Gitlab CI || | | ✅¹ | | |
6262
| Cirrus CI || ✅³ |||| |
6363

6464
<sup[Requires emulation](https://cibuildwheel.readthedocs.io/en/stable/faq/#emulation), distributed separately. Other services may also support Linux ARM through emulation or third-party build hosts, but these are not tested in our CI.</sup><br>

docs/data/projects.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@
206206
ci: [github]
207207
os: [windows, apple, linux]
208208

209+
- name: pybind11 cross build example
210+
gh: wbarnha/pybind_cmake_example_crossbuild
211+
ci: [github, gitlab]
212+
os: [windows, apple, linux]
213+
notes: Same as pybind11 cmake_example but used to demo Linux ARM + Windows + macOS builds on GitLab
214+
209215
- name: iminuit
210216
gh: scikit-hep/iminuit
211217
ci: [github]
@@ -601,7 +607,7 @@
601607
gh: tensorchord/envd
602608
ci: [github]
603609
os: [apple, linux, windows]
604-
note: A machine learning development environment build toool
610+
note: A machine learning development environment build tool
605611

606612
- name: mosec
607613
gh: mosecorg/mosec

examples/gitlab-minimal.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,17 @@ linux:
1717
artifacts:
1818
paths:
1919
- wheelhouse/
20+
21+
windows:
22+
image: mcr.microsoft.com/windows/servercore:1809
23+
before_script:
24+
- choco install python -y --version 3.8.6
25+
- choco install git.install -y
26+
- py -m pip install cibuildwheel==2.10.2
27+
script:
28+
- py -m cibuildwheel --output-dir wheelhouse --platform windows
29+
artifacts:
30+
paths:
31+
- wheelhouse/
32+
tags:
33+
- windows

examples/gitlab-with-qemu.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
linux:
2+
image: python:3.8
3+
# make a docker daemon available for cibuildwheel to use
4+
services:
5+
- name: docker:dind
6+
entrypoint: ["env", "-u", "DOCKER_HOST"]
7+
command: ["dockerd-entrypoint.sh"]
8+
variables:
9+
DOCKER_HOST: tcp://docker:2375/
10+
DOCKER_DRIVER: overlay2
11+
# See https://github.com/docker-library/docker/pull/166
12+
DOCKER_TLS_CERTDIR: ""
13+
script:
14+
- curl -sSL https://get.docker.com/ | sh
15+
# Warning: This is extremely slow, be careful with how many wheels you build
16+
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
17+
- python -m pip install cibuildwheel==2.10.2
18+
# Assuming your CI runner's default architecture is x86_64...
19+
- cibuildwheel --output-dir wheelhouse --platform linux --archs aarch64
20+
artifacts:
21+
paths:
22+
- wheelhouse/

0 commit comments

Comments
 (0)
0