Install scanner
dependencies in test
workflow
#28
Workflow file for this run
This file contains hidden or 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: | |
all: | |
runs-on: ${{ matrix.os }} | |
env: | |
RUSTFLAGS: --deny warnings | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
rust: [stable, beta] | |
steps: | |
- name: Install dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
export DEBIAN_FRONTED=noninteractive | |
sudo apt-get -qq update | |
sudo apt-get install -y libxkbcommon-dev libltdl-dev | |
- name: Install OpenCV and Tesseract | |
if: matrix.os == 'macOS-latest' | |
run: brew install opencv tesseract | |
- name: Install OpenCV and Tesseract | |
if: matrix.os == 'windows-latest' || matrix.os == 'ubuntu-latest' | |
run: | | |
cd $VCPKG_INSTALLATION_ROOT | |
vcpkg integrate install | |
vcpkg install opencv tesseract | |
- uses: hecrj/setup-rust-action@v2 | |
with: | |
rust-version: ${{ matrix.rust }} | |
- uses: actions/checkout@master | |
- name: Run tests | |
run: | | |
cargo test --verbose --workspace |