Switch use libgit2 for diff, remove runtime dependency on git (#20) #95
This file contains 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: Rust | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
env: | |
RUST_BACKTRACE: 1 | |
CARGO_TERM_COLOR: always | |
CLICOLOR: 1 | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
rustv: [stable, beta] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rustv }} | |
components: clippy, rustfmt | |
- uses: swatinem/rust-cache@v2 | |
- name: Test | |
run: cargo test | |
- name: Clippy | |
run: cargo clippy -- -Dwarnings | |
- name: fmt | |
run: cargo fmt --check |