[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 3/3] tests: perform cross compiler builds on GitLab CI



GitLab CI provides some shared build runners that use Docker containers.
This resource can usefully run cross-compiled builds since all other CI
build testing is currently x86 only, and Travis CI is already very busy
testing native builds.

Signed-off-by: Daniel P. Berrangé <berrange redhat com>
---
 .gitlab-ci.yml | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000000..081d9d8f91
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,38 @@
+.job_template: &job_definition
+  script:
+    - mkdir vpath
+    - cd vpath
+    - ../autogen.sh $LIBVIRT_CONFIGURE_OPTS
+    - make -j $(getconf _NPROCESSORS_ONLN)
+
+crossarm64:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-cross-arm64
+
+crossarmel:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-cross-armel
+
+crossarmhf:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-cross-armhf
+
+crossmips64el:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-cross-mips64el
+
+crossmips:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-cross-mips
+
+crossmipsel:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-cross-mipsel
+
+crossppc64el:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-cross-ppc64el
+
+crosss390x:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-cross-s390x
-- 
2.20.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]