From 4ef2359453a47d37975d33793f6d47599dc3a763 Mon Sep 17 00:00:00 2001 From: Estelle Poulin Date: Sun, 12 Mar 2023 16:50:01 -0400 Subject: [PATCH] Do the build --- .gitlab-ci.yml | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..b7cca25 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,67 @@ +--- + +image: ubuntu:bionic + +variables: + GIT_SUBMODULE_STRATEGY: recursive + +stages: + - build + +build-tesseract: + stage: build + script: + - apt update + && apt install -y + wget + git + build-essential + curl + autoconf + automake + libtool + pkg-config + apt-transport-https + ppa-purge + zsh + screen + byobu + parallel + iperf3 + iotop + atop + nethogs + htop + software-properties-common + libicu-dev + libpango1.0-dev + libcairo2-dev + libpng-dev + libjpeg-dev + libtiff-dev + libgif-dev + zlib1g-dev + liblzma-dev + libjbig-dev + curl + - curl -LO https://github.com/DanBloomberg/leptonica/archive/refs/tags/1.83.1.tar.gz + - tar -xf 1.83.1.tar.gz + - cd ./leptonica-1.83.1 + - ./autogen.sh + - LDFLAGS=--static LIBS="-ljbig -llzma" ./configure --disable-shared + - make + - make install + - cd ../ + - curl -LO https://github.com/tesseract-ocr/tesseract/archive/refs/tags/5.3.0.tar.gz + - tar -xf 5.3.0.tar.gz + - cd ./tesseract-5.3.0 + - ./autogen.sh + - LDFLAGS=--static LIBS="-ljbig -llzma" ./configure --disable-shared + - make + - make install + - cp "$(which tesseract)" . + artifacts: + paths: + - "tesseract-5.3.0/tesseract" + when: on_success + expire_in: 1 days