Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

removed some chunk and added tests #67

removed some chunk and added tests

removed some chunk and added tests #67

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build-on-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Build release
run: cargo build --release
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: windows-build-release
path: target/release/*.exe
overwrite: true
build-on-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: brew install tesseract pkg-config
- name: Build
run: cargo build --verbose
- name: Build release
run: cargo build --release
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: macos-build-release
path: target/release/*
overwrite: true
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and tag Docker image
run: |
docker build -t ghcr.io/${{ github.repository }}:latest -f Dockerfile.prod .
docker tag ghcr.io/${{ github.repository }}:latest ghcr.io/${{ github.repository }}:${{ github.sha }}
- name: Push Docker image
run: |
docker push ghcr.io/${{ github.repository }}:latest
docker push ghcr.io/${{ github.repository }}:${{ github.sha }}