Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Tika and wkhtmltopdf #239

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ jobs:
options: --entrypoint redis-server

env:
TIKA_VERSION: '1.28.5'
WKHTMLTOPDF_VERSION: '0.12.3'
TIKA_VERSION: '2.9.2'

steps:
- name: Install ImageMagick, libmagic-dev, LibreOffice, Tesseract OCR
- name: Install ImageMagick, libmagic-dev, LibreOffice, Tesseract OCR, wkhtmltopdf
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends install imagemagick libmagic-dev libreoffice tesseract-ocr
sudo apt-get -yq --no-install-suggests --no-install-recommends install imagemagick libmagic-dev libreoffice tesseract-ocr wkhtmltopdf
- uses: actions/cache@v4
name: Check Apache Tika
id: cache-tika
Expand All @@ -37,28 +36,13 @@ jobs:
~/.local/bin/tika
~/.local/bin/tika-app.jar
key: ${{ runner.os }}-tika-bin-cache-${{ env.TIKA_VERSION }}
- uses: actions/cache@v4
name: Check wkhtmltopdf
id: cache-wkhtmltopdf
with:
path: |
~/.local/bin/wkhtmltopdf
key: ${{ runner.os }}-wkhtmltopdf-bin-cache-${{ env.WKHTMLTOPDF_VERSION }}
- name: Install Tika
if: steps.cache-tika.outputs.cache-hit != 'true'
run: |
mkdir -p ~/.local/bin
wget --quiet https://archive.apache.org/dist/tika/${TIKA_VERSION}/tika-app-${TIKA_VERSION}.jar -O ~/.local/bin/tika-app.jar
echo $'#!/bin/sh\n\nARGS="$@"\n\n[ $# -eq 0 ] && ARGS="--help"\n\nexec java -jar ~/.local/bin/tika-app.jar $ARGS\n' > ~/.local/bin/tika
chmod +x ~/.local/bin/tika
- name: Install wkhtmltopdf (with qt)
if: steps.cache-wkhtmltopdf.outputs.cache-hit != 'true'
run: |
mkdir -p ~/.local/bin
wget --quiet https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox-${WKHTMLTOPDF_VERSION}_linux-generic-amd64.tar.xz -O wkhtmltox.tar.xz
tar -xf wkhtmltox.tar.xz
mv wkhtmltox/bin/wkhtmltopdf ~/.local/bin/wkhtmltopdf
rm -rf wkhtmltox wkhtmltox.tar.xz
- name: Show versions of libraries
run: |
convert --version
Expand Down