Skip to content

Release 0.11.2

Release 0.11.2 #376

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Free disk space (ubuntu-latest preinstalled bloat removal)
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # main
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: true
swap-storage: false
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # 1.96.0
with:
toolchain: 1.96.0
- name: Install Tesseract + English language pack (gaze-document) + protoc (candle-onnx build dep)
run: |
sudo apt-get update
sudo apt-get install -y tesseract-ocr tesseract-ocr-eng protobuf-compiler
- name: Install pdfium dynamic library (gaze-document PDF input)
run: |
set -eu
curl -sSL -o /tmp/pdfium.tgz \
https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-linux-x64.tgz
mkdir -p /tmp/pdfium-extract
tar -xzf /tmp/pdfium.tgz -C /tmp/pdfium-extract
sudo install -m 0755 /tmp/pdfium-extract/lib/libpdfium.so /usr/local/lib/libpdfium.so
sudo ldconfig
- name: Cache cargo registry + target
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-test-
- name: cargo fmt --check
run: cargo fmt --all -- --check
- name: README version check
run: cargo run -p xtask -- readme-version-check
- name: cargo clippy
run: cargo clippy --workspace --all-features --all-targets -- -D warnings
- name: cargo test gaze-document mcp feature
run: cargo test -p gaze-document --features mcp --no-fail-fast
- name: cargo test gaze-cli mcp feature
run: cargo test -p gaze-cli --features mcp --no-fail-fast
- name: cargo test
run: cargo test --workspace --all-features --no-fail-fast