2020-05-02 22:53:11 +07:00
|
|
|
name: Tesseract alternative builds
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- "share/ci/**"
|
2020-05-02 23:23:13 +07:00
|
|
|
- ".github/workflows/tesseract.yml"
|
2020-05-02 22:53:11 +07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build ${{ matrix.config.name }}
|
|
|
|
runs-on: ${{ matrix.config.os }}
|
|
|
|
env:
|
|
|
|
OS: ${{ matrix.config.name }}
|
|
|
|
MSVC_VERSION: 2019/Enterprise
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
config:
|
|
|
|
- { name: "win64", os: windows-latest }
|
|
|
|
- { name: "win32", os: windows-latest }
|
|
|
|
- { name: "linux", os: ubuntu-16.04 }
|
|
|
|
# - { name: "macos", os: macos-latest }
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 10
|
|
|
|
|
|
|
|
- name: Setup python
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: "3.x"
|
|
|
|
|
|
|
|
- name: Cache dependencies
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: deps
|
|
|
|
key: ${{ env.OS }}-tess
|
|
|
|
|
|
|
|
- name: Leptonica
|
|
|
|
run: python ./share/ci/get_leptonica.py
|
|
|
|
|
|
|
|
- name: Compatible
|
|
|
|
env:
|
|
|
|
MARCH: nehalem
|
|
|
|
run: python ./share/ci/get_tesseract.py
|
|
|
|
|
|
|
|
- name: Upload
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2020-05-02 23:20:45 +07:00
|
|
|
name: tesseract-compatible-${{ env.OS }}
|
2020-05-02 22:53:11 +07:00
|
|
|
path: ./deps
|
|
|
|
|
|
|
|
- name: Optimized
|
|
|
|
env:
|
|
|
|
MARCH: kaby-lake
|
|
|
|
run: python ./share/ci/get_tesseract.py
|
|
|
|
|
|
|
|
- name: Upload
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2020-05-02 23:20:45 +07:00
|
|
|
name: tesseract-optimized-${{ env.OS }}
|
2020-05-02 22:53:11 +07:00
|
|
|
path: ./deps
|