Skip to content

Commit

Permalink
try mupdf cache
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Aug 16, 2024
1 parent f57a1f5 commit 3aa9adc
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,31 +54,32 @@ jobs:
name: pdfium
path: sitro/target/release/pdfium

# mupdf:
# name: MuPDF
# runs-on: ubuntu-latest
# steps:
# - name: Cache MuPDF binary
# uses: actions/cache@v4
# with:
# path: mupdf-1.24.8-source/build/release/mutool
# key: mupdf-binary-v1
# - name: Download MuPDF (if not cached)
# if: steps.cache.outputs.cache-hit != 'true'
# run: |
# curl -LO https://mupdf.com/downloads/archive/mupdf-1.24.8-source.tar.gz
# tar -xvzf ./mupdf-1.24.8-source.tar.gz
# - name: Build MuPDF (if not cached)
# if: steps.cache.outputs.cache-hit != 'true'
# run: |
# cd mupdf-1.24.8-source
# make HAVE_X11=no HAVE_GLUT=no
# - name: Upload binary
# if: steps.cache.outputs.cache-hit != 'true'
# uses: actions/upload-artifact@v4
# with:
# name: mutool
# path: mupdf-1.24.8-source/build/release/mutool
mupdf:
name: MuPDF
runs-on: ubuntu-latest
steps:
- name: Cache MuPDF binary
id: cache-mupdf
uses: actions/cache@v4
with:
path: mupdf-1.24.8-source/build/release/mutool
key: mupdf-binary-v1
- name: Download MuPDF (if not cached)
if: steps.cache-mupdf.outputs.cache-hit != 'true'
run: |
curl -LO https://mupdf.com/downloads/archive/mupdf-1.24.8-source.tar.gz
tar -xvzf ./mupdf-1.24.8-source.tar.gz
- name: Build MuPDF (if not cached)
if: steps.cache-mupdf.outputs.cache-hit != 'true'
run: |
cd mupdf-1.24.8-source
make HAVE_X11=no HAVE_GLUT=no
- name: Upload binary
if: steps.cache-mupdf.outputs.cache-hit != 'true'
uses: actions/upload-artifact@v4
with:
name: mutool
path: mupdf-1.24.8-source/build/release/mutool

# tests:
# name: Tests
Expand Down

0 comments on commit 3aa9adc

Please sign in to comment.