Merge pull request #1295 from wbarnha/extend-gitlab-qemu
Update GitLab support
This commit is contained in:
@@ -17,3 +17,16 @@ linux:
|
|||||||
- curl -sSL https://get.docker.com/ | sh
|
- curl -sSL https://get.docker.com/ | sh
|
||||||
- python -m pip install -e ".[dev]" pytest-custom-exit-code
|
- python -m pip install -e ".[dev]" pytest-custom-exit-code
|
||||||
- python ./bin/run_tests.py
|
- python ./bin/run_tests.py
|
||||||
|
|
||||||
|
windows:
|
||||||
|
image: mcr.microsoft.com/windows/servercore:1809
|
||||||
|
variables:
|
||||||
|
PYTEST_ADDOPTS: -k "unit_test or test_0_basic" --suppress-no-test-exit-code
|
||||||
|
before_script:
|
||||||
|
- choco install python -y --version 3.8.6
|
||||||
|
script:
|
||||||
|
- py -m cibuildwheel --output-dir wheelhouse --platform windows
|
||||||
|
- py -m pip install -e ".[dev]" pytest-custom-exit-code
|
||||||
|
- py bin\run_tests.py
|
||||||
|
tags:
|
||||||
|
- windows
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ Usage
|
|||||||
| Travis CI | ✅ | | ✅ | ✅ | | |
|
| Travis CI | ✅ | | ✅ | ✅ | | |
|
||||||
| AppVeyor | ✅ | ✅ | ✅ | | ✅² | ✅⁴ |
|
| AppVeyor | ✅ | ✅ | ✅ | | ✅² | ✅⁴ |
|
||||||
| CircleCI | ✅ | ✅ | | | ✅² | |
|
| CircleCI | ✅ | ✅ | | | ✅² | |
|
||||||
| Gitlab CI | ✅ | | | | | |
|
| Gitlab CI | ✅ | | ✅ | ✅¹ | | |
|
||||||
| Cirrus CI | ✅ | ✅³ | ✅ | ✅ | ✅ | |
|
| Cirrus CI | ✅ | ✅³ | ✅ | ✅ | ✅ | |
|
||||||
|
|
||||||
<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>
|
<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>
|
||||||
|
|||||||
@@ -204,6 +204,12 @@
|
|||||||
ci: [github]
|
ci: [github]
|
||||||
os: [windows, apple, linux]
|
os: [windows, apple, linux]
|
||||||
|
|
||||||
|
- name: pybind11 cross build example
|
||||||
|
gh: wbarnha/pybind_cmake_example_crossbuild
|
||||||
|
ci: [github, gitlab]
|
||||||
|
os: [windows, apple, linux]
|
||||||
|
notes: Same as pybind11 cmake_example but used to demo Linux ARM + Windows + macOS builds on GitLab
|
||||||
|
|
||||||
- name: iminuit
|
- name: iminuit
|
||||||
gh: scikit-hep/iminuit
|
gh: scikit-hep/iminuit
|
||||||
ci: [github]
|
ci: [github]
|
||||||
@@ -599,7 +605,7 @@
|
|||||||
gh: tensorchord/envd
|
gh: tensorchord/envd
|
||||||
ci: [github]
|
ci: [github]
|
||||||
os: [apple, linux, windows]
|
os: [apple, linux, windows]
|
||||||
note: A machine learning development environment build toool
|
note: A machine learning development environment build tool
|
||||||
|
|
||||||
- name: mosec
|
- name: mosec
|
||||||
gh: mosecorg/mosec
|
gh: mosecorg/mosec
|
||||||
|
|||||||
@@ -17,3 +17,17 @@ linux:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- wheelhouse/
|
- wheelhouse/
|
||||||
|
|
||||||
|
windows:
|
||||||
|
image: mcr.microsoft.com/windows/servercore:1809
|
||||||
|
before_script:
|
||||||
|
- choco install python -y --version 3.8.6
|
||||||
|
- choco install git.install -y
|
||||||
|
- py -m pip install cibuildwheel==2.10.2
|
||||||
|
script:
|
||||||
|
- py -m cibuildwheel --output-dir wheelhouse --platform windows
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- wheelhouse/
|
||||||
|
tags:
|
||||||
|
- windows
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
linux:
|
||||||
|
image: python:3.8
|
||||||
|
# make a docker daemon available for cibuildwheel to use
|
||||||
|
services:
|
||||||
|
- name: docker:dind
|
||||||
|
entrypoint: ["env", "-u", "DOCKER_HOST"]
|
||||||
|
command: ["dockerd-entrypoint.sh"]
|
||||||
|
variables:
|
||||||
|
DOCKER_HOST: tcp://docker:2375/
|
||||||
|
DOCKER_DRIVER: overlay2
|
||||||
|
# See https://github.com/docker-library/docker/pull/166
|
||||||
|
DOCKER_TLS_CERTDIR: ""
|
||||||
|
script:
|
||||||
|
- curl -sSL https://get.docker.com/ | sh
|
||||||
|
# Warning: This is extremely slow, be careful with how many wheels you build
|
||||||
|
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
|
- python -m pip install cibuildwheel==2.10.2
|
||||||
|
# Assuming your CI runner's default architecture is x86_64...
|
||||||
|
- cibuildwheel --output-dir wheelhouse --platform linux --archs aarch64
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- wheelhouse/
|
||||||
Reference in New Issue
Block a user