CI: cai Tesseract OCR (eng + vie traineddata) cho buoc test - test OCR can binary that
Build Windows portable / build (push) Canceled after 0s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-08 02:58:11 +07:00
co-authored by Claude Fable 5
parent b38655a011
commit 93d49a67df
+9
View File
@@ -41,6 +41,15 @@ jobs:
shell: pwsh
run: powershell -ExecutionPolicy Bypass -File scripts/fetch-qpdf.ps1
# Test OCR cần tesseract thật (eng + vie). Chocolatey có sẵn trên runner.
- name: Install Tesseract OCR (eng + vie)
shell: pwsh
run: |
choco install tesseract -y --no-progress
$tessdata = "C:\Program Files\Tesseract-OCR\tessdata"
Invoke-WebRequest "https://github.com/tesseract-ocr/tessdata_fast/raw/main/vie.traineddata" -OutFile "$tessdata\vie.traineddata"
echo "FOFREEXIT_TESSERACT_PATH=C:\Program Files\Tesseract-OCR\tesseract.exe" >> $env:GITHUB_ENV
# Máy dev không có Rust — CI là nơi duy nhất chạy test engine.
# Fail test = fail build, không publish bản hỏng.
# --test-threads=1: PDFium serialize qua 1 mutex toàn cục; 1 test panic