fix: update package version to 0.1.4 #95
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: CI | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| branches: [dev, main] | |
| push: | |
| branches: [dev, main] | |
| jobs: | |
| format: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Format | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: fmt | |
| args: --all -- --check | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install and Cache system dependencies | |
| uses: awalsh128/cache-apt-pkgs-action@v1 | |
| with: | |
| packages: libtesseract-dev libleptonica-dev libclang-dev | |
| version: 1.0 | |
| - name: Cache Rust toolchain and dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.rustup | |
| ~/.cargo | |
| target | |
| key: ${{ runner.os }}-rust-${{ hashFiles('.github/workflows/**.yaml') }} | |
| - name: Lint | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: clippy | |
| args: --all -- -D warnings | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install and Cache system dependencies | |
| uses: awalsh128/cache-apt-pkgs-action@v1 | |
| with: | |
| packages: libtesseract-dev libleptonica-dev libclang-dev | |
| version: 1.0 | |
| - name: Cache Rust toolchain and dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.rustup | |
| ~/.cargo | |
| target | |
| key: ${{ runner.os }}-rust-${{ hashFiles('.github/workflows/**.yaml') }} | |
| - name: Test | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --all | |
| pre-publish-crates: | |
| name: Pre publish Checks for Crates.io | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install and Cache system dependencies | |
| uses: awalsh128/cache-apt-pkgs-action@v1 | |
| with: | |
| packages: libtesseract-dev libleptonica-dev libclang-dev | |
| version: 1.0 | |
| - name: Cache Rust toolchain and dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.rustup | |
| ~/.cargo | |
| target | |
| key: ${{ runner.os }}-rust-${{ hashFiles('.github/workflows/**.yaml') }} | |
| - name: Verify Package | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: package | |
| args: --workspace | |
| # TODO: Find way to fail when version already exists on crates.io | |
| - name: Dry run publish for core crate | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: publish | |
| args: -p parser-core --dry-run | |
| build-docker: | |
| name: Build Docker image | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build Docker image | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: . | |
| push: false | |
| tags: ghcr.io/${{ github.repository }}:latest |