mirror of
https://github.com/ekzhang/bore.git
synced 2025-01-05 13:09:12 +07:00
a2b8382681
* Add GitHub CI/CD * Add instructions for installing bin from GitHub releases * Will work after a new version is released * Add windows jobs for CI/CD * Only run CI on stable rust * Use `cargo fmt` instead of `rustfmt`, undo change * Delete install.sh * Update README.md Co-authored-by: Eric Zhang <ekzhang1@gmail.com>
48 lines
875 B
YAML
48 lines
875 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
rust:
|
|
name: Build and Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
|
|
- run: cargo build --all-features
|
|
|
|
- run: cargo test
|
|
|
|
rustfmt:
|
|
name: Rustfmt
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
components: rustfmt
|
|
|
|
- run: cargo fmt -- --check
|
|
|
|
clippy:
|
|
name: Clippy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
components: clippy
|
|
|
|
- run: cargo clippy -- -D warnings
|