[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
replacing the aarch64 build
[Thread Prev] | [Thread Next]
- Subject: replacing the aarch64 build
- From: Nikos Mavrogiannopoulos <nmav@xxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 29 Jun 2018 16:34:50 +0200
- To: libssh@xxxxxxxxxx
Hi, This introduces a framework for cross-platform building and testing, which is currently enabled for MIPS builds. It can be trivially enabled for other platforms too (e.g., aarch64) at the cost of more CI runs. regards, Nikos PS. It depends on: https://gitlab.com/libssh/build-images/merge_requests/4
From d261370f7a24e6137c6ce76ca977cd899d39b57f Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos <nmav@xxxxxxxxxx> Date: Fri, 29 Jun 2018 16:29:34 +0200 Subject: [PATCH] .gitlab-ci.yml: added build for mips platform This tests multiple items, (1) cross compilation, (2) compilation on debian and (3) CI run on MIPS systems, tested under qemu. This target was originally written for GnuTLS by Michael Weiser. Signed-off-by: Nikos Mavrogiannopoulos <nmav@xxxxxxxxxx> --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 70ec46ac..18cef9cb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -252,3 +252,28 @@ mingw32: when: on_failure paths: - build/ + +.Debian.cross.template: &Debian_cross_template + stage: stage1-testing + image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$DEBIAN_CROSS_BUILD + script: + - build=$(dpkg-architecture -qDEB_HOST_GNU_TYPE) + - host="${CI_JOB_NAME#*.cross.}" + - export CC="$(which $host-gcc)" + - export CXX="$(which $host-g++)" + - mkdir -p obj && cd obj && cmake -DUNIT_TESTING=ON -DCMAKE_BUILD_TYPE=Debug + -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DCMAKE_SYSTEM_NAME="$host" + -DWITH_PCAP=ON .. && make -j$(nproc) + - ctest --output-on-failure -j$(nproc) + tags: + - shared + except: + - tags + artifacts: + expire_in: 1 week + when: on_failure + paths: + - obj/ + +Debian.cross.mips-linux-gnu: + <<: *Debian_cross_template -- 2.17.1
Archive administrator: postmaster@lists.cynapses.org