comparison mupdf-source/thirdparty/tesseract/.github/workflows/msys2.yml @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 name: msys2
2 # msys2 build for tesseract -head from main branch.
3 on:
4 #push:
5 schedule:
6 - cron: 0 17 * * *
7 jobs:
8 windows:
9 runs-on: windows-2019
10 strategy:
11 fail-fast: false
12 matrix:
13 include:
14 - msystem: MINGW64
15 mingw_package_prefix: mingw-w64-x86_64
16 defaults:
17 run:
18 shell: msys2 {0}
19 steps:
20 - uses: actions/checkout@v4
21 with:
22 submodules: recursive
23 - uses: msys2/setup-msys2@v2
24 with:
25 msystem: ${{ matrix.msystem }}
26 install: autoconf automake automake-wrapper git libtool make
27 - run: pacman --noconfirm -S ${{ matrix.mingw_package_prefix }}-gcc
28 - run: gcc --version
29
30 - name: Install dependencies
31 run: |
32 pacman --noconfirm -S ${{ matrix.mingw_package_prefix }}-cairo
33 pacman --noconfirm -S ${{ matrix.mingw_package_prefix }}-curl
34 pacman --noconfirm -S ${{ matrix.mingw_package_prefix }}-gcc-libs
35 pacman --noconfirm -S ${{ matrix.mingw_package_prefix }}-icu
36 pacman --noconfirm -S ${{ matrix.mingw_package_prefix }}-leptonica
37 pacman --noconfirm -S ${{ matrix.mingw_package_prefix }}-libarchive
38 pacman --noconfirm -S ${{ matrix.mingw_package_prefix }}-pango
39 pacman --noconfirm -S ${{ matrix.mingw_package_prefix }}-pkg-config
40 pacman --noconfirm -S ${{ matrix.mingw_package_prefix }}-zlib
41
42 - name: Setup Tesseract
43 run: |
44 ./autogen.sh
45
46 - name: Configure Tesseract
47 run: |
48 ./configure '--disable-shared' '--disable-openmp' '--disable-doc' 'CXX=${{ matrix.config.cxx }}' 'CXXFLAGS=-g -O2'
49
50 - name: Build and install Tesseract
51 run: |
52 make
53 make install
54
55 - name: Make and install training tools
56 run: |
57 make training
58 make training-install
59
60 - name: Display version
61 run: |
62 tesseract -v
63 text2image -v
64 lstmtraining -v
65
66 - name: Download fonts, tessdata and langdata required for tests
67 run: |
68 git clone https://github.com/egorpugin/tessdata tessdata_unittest
69 cp tessdata_unittest/fonts/* test/testing/
70 mv tessdata_unittest/* ../
71
72 - name: Run Tesseract on phototest.tif and devatest.png
73 run: |
74 tesseract test/testing/phototest.tif - --tessdata-dir ../tessdata
75 tesseract test/testing/devatest.png - -l hin+eng --tessdata-dir ../tessdata