diff mupdf-source/thirdparty/tesseract/appveyor.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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mupdf-source/thirdparty/tesseract/appveyor.yml	Mon Sep 15 11:43:07 2025 +0200
@@ -0,0 +1,48 @@
+environment:
+  matrix:
+    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
+      platform: Win64
+
+configuration:
+  - Release
+
+cache:
+  - c:/Users/appveyor/.sw -> appveyor.yml
+
+only_commits:
+  files:
+    - appveyor.yml
+    - '**.cpp'
+    - '**.h'
+    - 'unittest/**.c'
+    - 'unittest/**.cc'
+
+before_build:
+  - git submodule update --init --recursive
+  - curl -fsS -L -o dl.zip https://software-network.org/client/sw-master-windows_x86_64-client.zip
+  - 7z x dl.zip
+  - set PATH=%PATH%;%cd%
+
+build_script:
+  - sw -version
+  # -show-output - show command output
+  # debug build causes long builds (> 1h), appveyor drops them
+  - sw -platform %platform% -config r build -Dwith-tests=1
+  # test
+  - git clone https://github.com/egorpugin/tessdata tessdata_unittest
+  - ps: Copy-Item -Path "tessdata_unittest\fonts\*" -Destination "test\testing" -Recurse
+  - sw -platform %platform% -config r test -Dwith-tests=1 -Dskip-tests=lstm,lstm_recode
+
+after_build:
+  - 7z a tesseract.zip %APPVEYOR_BUILD_FOLDER%\.sw\out\**\*.exe %APPVEYOR_BUILD_FOLDER%\.sw\out\**\*.dll
+  #- 7z a tesseract.zip %APPVEYOR_BUILD_FOLDER%\.sw\Windows_*_Shared_Release_MSVC_*\*.exe %APPVEYOR_BUILD_FOLDER%\.sw\Windows_*_Shared_Release_MSVC_*\*.dll
+
+on_finish:
+  # gather tests
+  - ps: $wc = New-Object 'System.Net.WebClient'
+  - ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\.sw\test\results.xml))
+
+artifacts:
+  - path: tesseract.zip
+    name: tesseract-$(APPVEYOR_BUILD_VERSION)
+