mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-19 15:03:45 +08:00
Add macos to daily ci runs
This commit is contained in:
parent
147edc7d06
commit
3d494846c8
25
.github/workflows/dailycmake.yml
vendored
25
.github/workflows/dailycmake.yml
vendored
@ -47,7 +47,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ ubuntu-18.04, ubuntu-20.04 ]
|
||||
gcc_version: [ 11, 10, 9, 8, 7, 6, 5, 4 ]
|
||||
clang_version: [ 11, 10, 9, 8, 7, 6, 5, 4 ]
|
||||
build_type: [ Release, Debug ]
|
||||
|
||||
steps:
|
||||
@ -62,8 +62,7 @@ jobs:
|
||||
|
||||
- name: Build and run
|
||||
run: |
|
||||
export CC=gcc-${{ matrix.clang_version }}
|
||||
export CXX=g++-${{ matrix.clang_version }}
|
||||
export CC=clang-${{ matrix.clang_version }}
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
@ -78,11 +77,17 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest, windows-2016]
|
||||
|
||||
os: [windows-latest]
|
||||
build_type: [ Release, Debug ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: configure
|
||||
run: mkdir build && cd build && cmake ..
|
||||
- name: build
|
||||
run: cmake --build build --config Debug
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
|
||||
|
||||
- name: Build
|
||||
run: cmake --build build --config ${{ matrix.build_type }}
|
||||
|
95
.github/workflows/dailyunittest.yml
vendored
95
.github/workflows/dailyunittest.yml
vendored
@ -6,41 +6,102 @@ on:
|
||||
- cron: 15 1 * * *
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-linux:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ ubuntu-20.04 ]
|
||||
legacy: [ enable, disable ]
|
||||
legacy: [ enable-legacy, disable-legacy ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: install dependencies
|
||||
- name: Install dependencies
|
||||
run: mkdir -p m4 && sudo apt-get install autoconf-archive libleptonica-dev libpango1.0-dev cabextract -y
|
||||
|
||||
- name: download fonts, tessdata and langdata required for tests
|
||||
run: git clone https://github.com/egorpugin/tessdata tessdata_unittest
|
||||
|
||||
- name: copy fonts and move tessdata
|
||||
run: cp tessdata_unittest/fonts/* test/testing/ && mv tessdata_unittest/* ../ && ls ../
|
||||
|
||||
- name: autoconf
|
||||
|
||||
- name: Autogen
|
||||
run: ./autogen.sh
|
||||
|
||||
- name: configure
|
||||
run: ./configure --enable-openmp --disable-shared --disable-debug --disable-opencl --disable-graphics --${{ matrix.legacy }}-legacy --with-tensorflow=no 'CXXFLAGS=-g -O2 -Wall -Wextra -Wpedantic -fsanitize=address,undefined -fstack-protector-strong -ftrapv'
|
||||
- name: Configure
|
||||
run: ./configure --enable-openmp --disable-shared --disable-debug --disable-opencl --disable-graphics --${{ matrix.legacy }} --with-tensorflow=no 'CXXFLAGS=-g -O2 -fsanitize=address,undefined'
|
||||
|
||||
- name: make
|
||||
- name: Make Tesseract and Training Tools
|
||||
run: make training -j 8
|
||||
|
||||
- name: make check
|
||||
- name: Download fonts, tessdata and langdata required for tests
|
||||
run: git clone https://github.com/egorpugin/tessdata tessdata_unittest
|
||||
|
||||
- name: Copy fonts and move tessdata
|
||||
run: cp tessdata_unittest/fonts/* test/testing/ && mv tessdata_unittest/* ../ && ls ../
|
||||
|
||||
- name: Make check
|
||||
run: make check -j 4
|
||||
|
||||
- name: display test report
|
||||
run: git log -1 && tesseract -v && cat unittest/test-suite.log
|
||||
- name: Display Test-Suite report
|
||||
run: git log -1 && cat unittest/test-suite.log
|
||||
if: success() || failure()
|
||||
|
||||
build-macos:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ macos-latest ]
|
||||
compiler: [ gcc, clang ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Install Macports
|
||||
run: |
|
||||
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci; source ./macports-ci install
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo port install
|
||||
autoconf autoconf-archive \
|
||||
automake \
|
||||
libtool \
|
||||
pkgconfig \
|
||||
leptonica \
|
||||
cabextract
|
||||
sudo port install cairo pango icu +devel
|
||||
|
||||
- name: Setup
|
||||
run: |
|
||||
mkdir -p m4
|
||||
export CC=${{ matrix.compiler }}
|
||||
export CXX=${{ matrix.compiler }}
|
||||
./autogen.sh
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
./configure
|
||||
|
||||
- name: Make
|
||||
run: |
|
||||
make
|
||||
|
||||
- name: Make Training
|
||||
run: |
|
||||
make training
|
||||
sudo make install training-install
|
||||
|
||||
- name: Download fonts, tessdata and langdata required for tests
|
||||
run: git clone https://github.com/egorpugin/tessdata tessdata_unittest
|
||||
|
||||
- name: Copy fonts and move tessdata
|
||||
run: cp tessdata_unittest/fonts/* test/testing/ && mv tessdata_unittest/* ../ && ls ../
|
||||
|
||||
- name: Make check
|
||||
run: make check -j 4
|
||||
|
||||
- name: Display Test-Suite report
|
||||
run: git log -1 && cat unittest/test-suite.log
|
||||
if: success() || failure()
|
||||
|
Loading…
Reference in New Issue
Block a user