comparison mupdf-source/thirdparty/tesseract/.github/workflows/autotools-openmp.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: autotools-openmp
2 # autotools on Ubuntu - run benchmark test. '--enable-openmp' no training tools
3 on:
4 #push:
5 #schedule:
6 # - cron: 0 20 * * *
7 workflow_dispatch:
8 jobs:
9
10 linux:
11 runs-on: ${{ matrix.config.os }}
12 strategy:
13 fail-fast: false
14 matrix:
15 config:
16 - { name: 20.04-openmp, os: ubuntu-20.04 }
17 - { name: 22.04-openmp, os: ubuntu-22.04 }
18
19 steps:
20 - uses: actions/checkout@v4
21 with:
22 submodules: recursive
23
24 - name: Download fonts, tessdata and langdata required for tests
25 run: |
26 git clone https://github.com/egorpugin/tessdata tessdata_unittest
27 cp tessdata_unittest/fonts/* test/testing/
28 mv tessdata_unittest/* ../
29
30 - name: Install dependencies
31 run: |
32 sudo apt-get update
33 sudo apt-get install autoconf libleptonica-dev -y
34 sudo apt-get install libpango1.0-dev -y
35 sudo apt-get install cabextract libarchive-dev -y
36 sudo apt-get install libcurl4-openssl-dev libcurl4 curl -y
37
38 - name: Setup Tesseract
39 run: |
40 ./autogen.sh
41
42 - name: Configure Tesseract
43 run: |
44 ./configure '--disable-shared' '--enable-openmp' '--disable-doc' 'CXX=g++' 'CXXFLAGS=-g -O2'
45 grep -i OpenMP config.log
46
47 - name: Make and Install Tesseract
48 run: |
49 make
50 sudo make install
51
52 - name: Setup for Tesseract benchmark using image from issue 263 fifteen times in a list file
53 run: |
54 wget -O i263_speed.jpg https://cloud.githubusercontent.com/assets/9968625/13674495/ac261db4-e6ab-11e5-9b4a-ad91d5b4ff87.jpg
55 printf 'i263_speed.jpg\n%.0s' {1..15} > benchmarks.list
56
57 - name: Run Tesseract using image from issue 263 with tessdata_fast
58 run: |
59 lscpu
60 free
61 g++ --version
62 tesseract -v
63 time tesseract benchmarks.list - --tessdata-dir ../tessdata_fast > /dev/null 2>&1
64 echo "tessdata_fast"
65
66 - name: Run Tesseract using image from issue 263 with tessdata_fast and OpenMP Thread Limit
67 run: |
68 for lmt in {1..3}; do
69 time OMP_THREAD_LIMIT=$lmt tesseract benchmarks.list - --tessdata-dir ../tessdata_fast > /dev/null 2>&1 && echo "OMP_THREAD_LIMIT=" $lmt "tessdata_fast"
70 done
71
72 - name: Run Tesseract using image from issue 263 with tessdata_best and OpenMP Thread Limit
73 run: |
74 for lmt in {1..3}; do
75 time OMP_THREAD_LIMIT=$lmt tesseract benchmarks.list - --tessdata-dir ../tessdata_best > /dev/null 2>&1 && echo "OMP_THREAD_LIMIT=" $lmt "tessdata_best"
76 done
77
78 - name: Run Tesseract using image from issue 263 with tessdata and OpenMP Thread Limit
79 run: |
80 for lmt in {1..3}; do
81 time OMP_THREAD_LIMIT=$lmt tesseract benchmarks.list - --tessdata-dir ../tessdata > /dev/null 2>&1 && echo "OMP_THREAD_LIMIT=" $lmt "tessdata"
82 done