Crate renamed matcha->matcha-cli for crates.io (the name matcha is taken); binary stays matcha. Adds description/license/repository and CalVer prerelease version. New .github/workflows: ci (fmt+clippy+test), promote (main+tags -> GitHub), release (relocated from .gitea + crates.io publish on GitHub only). Cargo.lock regenerated; gate passes locally. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
24 lines
665 B
YAML
24 lines
665 B
YAML
name: CI
|
|
|
|
# Rust gate. Lives in .github/workflows so both Gitea and GitHub run it.
|
|
on:
|
|
pull_request:
|
|
branches: [develop, main]
|
|
push:
|
|
branches: [develop, main]
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Rust
|
|
run: |
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
|
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
|
- name: Add clippy + rustfmt
|
|
run: rustup component add clippy rustfmt
|
|
- run: cargo fmt --check
|
|
- run: cargo clippy --all-targets -- -D warnings
|
|
- run: cargo test --locked
|