#15: use the C locale to portably parse the PDF header #50
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
jobs: | |
Test: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the code. | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# Install the test dependencies. | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt install ghostscript | |
sudo apt install librsvg2-bin | |
sudo apt install texlive-latex-recommended | |
sudo apt install texlive-latex-extra | |
sudo apt install pandoc | |
# Generate a test PDF by using the README as a convenient source. | |
- name: Generate test PDF | |
run: pandoc -s -o orig.pdf README.md | |
# Shrink the PDF. | |
- name: Shrink the PDF | |
run: | | |
chmod +x shrinkpdf.sh | |
./shrinkpdf.sh -g -r 72 -o new.pdf orig.pdf | |
ls -al orig.pdf new.pdf |