Remove Document Scanner job from build workflow
This commit is contained in:
parent
b6b32c0ddc
commit
06a0356cbb
68
.github/workflows/build.yml
vendored
68
.github/workflows/build.yml
vendored
@ -14,72 +14,6 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
# ── Document Scanner ──────────────────────────────────────────────────────
|
|
||||||
build-document-scanner:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- os: windows-latest
|
|
||||||
name: windows
|
|
||||||
artifact_glob: "dist/*.exe"
|
|
||||||
- os: ubuntu-22.04
|
|
||||||
name: linux
|
|
||||||
artifact_glob: "dist/Document Scanner"
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
name: Document Scanner / ${{ matrix.name }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Python 3.12
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: "3.12"
|
|
||||||
cache: pip
|
|
||||||
|
|
||||||
# Linux: install system libraries required by OpenCV, pdf2image, Tesseract
|
|
||||||
- name: Install Linux system dependencies
|
|
||||||
if: runner.os == 'Linux'
|
|
||||||
run: |
|
|
||||||
sudo apt-get update -qq
|
|
||||||
sudo apt-get install -y --no-install-recommends \
|
|
||||||
tesseract-ocr tesseract-ocr-dan tesseract-ocr-deu \
|
|
||||||
poppler-utils \
|
|
||||||
libgtk-3-dev libwebkit2gtk-4.0-dev \
|
|
||||||
libglib2.0-dev libcairo2-dev pkg-config \
|
|
||||||
python3-dev
|
|
||||||
|
|
||||||
- name: Install Python dependencies
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install -r requirements.txt
|
|
||||||
|
|
||||||
# Download the Danish spaCy model used for NER/anonymisation
|
|
||||||
- name: Download spaCy model
|
|
||||||
run: python -m spacy download da_core_news_sm
|
|
||||||
|
|
||||||
- name: Build Document Scanner
|
|
||||||
run: python build_gdpr.py
|
|
||||||
|
|
||||||
# Zip the Linux binary (no installer on Linux)
|
|
||||||
- name: Package Linux binary
|
|
||||||
if: runner.os == 'Linux'
|
|
||||||
run: |
|
|
||||||
cd dist
|
|
||||||
zip -r "Document_Scanner_linux_x86_64.zip" "Document Scanner"
|
|
||||||
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: DocumentScanner-${{ matrix.name }}
|
|
||||||
retention-days: 30
|
|
||||||
path: |
|
|
||||||
dist/*.exe
|
|
||||||
dist/Document_Scanner_linux_x86_64.zip
|
|
||||||
|
|
||||||
# ── GDPRScanner ──────────────────────────────────────────────────────────
|
# ── GDPRScanner ──────────────────────────────────────────────────────────
|
||||||
build-m365-scanner:
|
build-m365-scanner:
|
||||||
strategy:
|
strategy:
|
||||||
@ -149,7 +83,7 @@ jobs:
|
|||||||
# ── Release (only on version tags v*) ────────────────────────────────────
|
# ── Release (only on version tags v*) ────────────────────────────────────
|
||||||
release:
|
release:
|
||||||
name: Create GitHub Release
|
name: Create GitHub Release
|
||||||
needs: [build-document-scanner, build-m365-scanner]
|
needs: [build-m365-scanner]
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user