next try #11
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: Continuous integration | |
on: [push, pull_request] | |
env: | |
RUSTFLAGS: "-Dwarnings" | |
RUSTDOCFLAGS: "-Dwarnings" | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Get Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Get Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Get pdfium | |
run: | | |
curl -LO https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F5880/pdfium-linux-x64.tgz | |
mkdir pdfium-linux-x64 | |
tar -xvzf ./pdfium-linux-x64.tgz -C pdfium-linux-x64 | |
sudo mv ./pdfium-linux-x64/lib/libpdfium.so /usr/lib | |
- name: Clone sitro repository | |
run: | | |
git clone https://github.com/LaurenzV/sitro | |
cd sitro/src/pdfium | |
- name: Build pdfium binary | |
run: | | |
cd sitro/src/pdfium | |
cargo build --release | |
- name: Set PDFIUM_BIN environment variable | |
run: echo "PDFIUM_BIN=$(pwd)/sitro/target/release/pdfium" >> $GITHUB_ENV | |
- name: Run tests | |
id: tests | |
run: cargo test --release |