Gracefully catch exceptions in tesseract GetAvailableLanguagesAsVecto… #429
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Build | |
on: [push] | |
jobs: | |
build: | |
name: MinGW build | |
runs-on: ubuntu-latest | |
container: | |
image: fedora:rawhide | |
options: --security-opt seccomp=unconfined | |
steps: | |
- name: Set safe directory | |
run: | | |
dnf install -y git | |
git config --global --add safe.directory ${GITHUB_WORKSPACE} | |
- uses: actions/[email protected] | |
- name: Update system | |
run: dnf -y update | |
- name: Install build dependencies | |
run: ./packaging/win32/mingwdeps.sh | |
- name: Build application | |
run: | | |
PATH=/usr/bin ./packaging/win32/makeinstaller.sh i686 qt6 nodebug ${{ steps.version_number.outputs.version }} | |
PATH=/usr/bin ./packaging/win32/makeinstaller.sh x86_64 qt6 nodebug ${{ steps.version_number.outputs.version }} | |
PATH=/usr/bin ./packaging/win32/makeinstaller.sh x86_64 gtk nodebug ${{ steps.version_number.outputs.version }} | |
- name: Reset ci-latest tag | |
run: | | |
VERSION=${{ steps.version_number.outputs.version }} | |
git config --global user.email "[email protected]" | |
git config --global user.name "Github CI" | |
git tag -d ci-latest || true | |
git push origin :ci-latest || true | |
git tag -m ci-latest ci-latest | |
git push --tags | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create release | |
id: create_release | |
uses: ncipollo/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
allowUpdates: true | |
tag: ci-latest | |
name: CI Build | |
draft: false | |
prerelease: true | |
replacesArtifacts: true | |
artifacts: " | |
./build/mingw32-qt6/gImageReader_*_qt6_i686_portable.zip, | |
./build/mingw32-qt6/gImageReader_*_qt6_i686.exe, | |
./build/mingw64-qt6/gImageReader_*_qt6_x86_64_portable.zip, | |
./build/mingw64-qt6/gImageReader_*_qt6_x86_64.exe, | |
./build/mingw64-gtk/gImageReader_*_gtk_x86_64_portable.zip, | |
./build/mingw64-gtk/gImageReader_*_gtk_x86_64.exe | |
" |