From 6afec53adcf9ec3722e7e1d7e3c877421405ad91 Mon Sep 17 00:00:00 2001 From: Jehan Date: Wed, 22 Apr 2020 17:30:17 +0200 Subject: [PATCH] gitlab-ci: Windows 32 and 64-bit builds. --- .gitlab-ci.yml | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bf36a37..488a98c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,9 @@ image: debian:testing stages: - build +variables: + GIT_DEPTH: "1" + ## GNU/Linux 64-bit CIs ## debian/testing: @@ -25,3 +28,67 @@ debian/testing: - make -j "$(nproc)" - make test - make install + +## Windows CIs ## + +win64: + stage: build + artifacts: + expire_in: 1 week + when: always + name: "uchardet-build-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" + paths: + - _build + before_script: + - apt-get update + - apt-get install -y --no-install-recommends + build-essential + cmake + cpio + gcc-mingw-w64-x86-64 + g++-mingw-w64-x86-64 + git + python3-distutils + python3-docutils + rpm + - apt-get install -y --reinstall ca-certificates + - git clone --depth=${GIT_DEPTH} git://git.tuxfamily.org/gitroot/crossroad/crossroad.git + - cd crossroad + - ./setup.py install --prefix=`pwd`/../.local + - cd .. + script: + - export PATH="`pwd`/.local/bin:$PATH" + - mkdir _build + - cd _build + - echo 'crossroad cmake .. && make && make install' | crossroad w64 gimp --run="-" + +win32: + stage: build + artifacts: + expire_in: 1 week + when: always + name: "uchardet-build-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" + paths: + - _build + before_script: + - apt-get update + - apt-get install -y --no-install-recommends + build-essential + cmake + cpio + gcc-mingw-w64-i686 + g++-mingw-w64-i686 + git + python3-distutils + python3-docutils + rpm + - apt-get install -y --reinstall ca-certificates + - git clone --depth=${GIT_DEPTH} git://git.tuxfamily.org/gitroot/crossroad/crossroad.git + - cd crossroad + - ./setup.py install --prefix=`pwd`/../.local + - cd .. + script: + - export PATH="`pwd`/.local/bin:$PATH" + - mkdir _build + - cd _build + - echo 'crossroad cmake .. && make && make install' | crossroad w32 gimp --run="-"