swordfish/.github/workflows/rust.yml

31 lines
612 B
YAML
Raw Permalink Normal View History

2024-01-12 11:21:54 +00:00
name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
2024-01-12 11:27:17 +00:00
- name: Install Tesseract 5
run: |
sudo add-apt-repository ppa:alex-p/tesseract-ocr-devel -y
sudo apt install -y tesseract-ocr libtesseract-dev
2024-01-12 11:30:27 +00:00
- name: Install Rust Nightly
run: |
rustup toolchain install nightly
rustup default nightly
2024-01-12 11:21:54 +00:00
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
# - name: Run tests
# run: cargo test --verbose