feat: cargo genreate
This commit is contained in:
parent
fc16497ceb
commit
ce7e64f4dd
8 changed files with 112 additions and 551 deletions
7
.github/workflows/ci.yaml
vendored
7
.github/workflows/ci.yaml
vendored
|
@ -14,6 +14,7 @@ env:
|
|||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
{% if ci-tests %}
|
||||
test:
|
||||
name: Tests
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -24,8 +25,9 @@ jobs:
|
|||
uses: dtolnay/rust-toolchain@nightly
|
||||
- name: Run cargo test
|
||||
run: cargo test
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if ci-clippy %}
|
||||
clippy_check:
|
||||
name: Clippy
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -39,7 +41,9 @@ jobs:
|
|||
components: clippy
|
||||
- name: Run clippy
|
||||
run: cargo clippy -- -D warnings
|
||||
{% endif %}
|
||||
|
||||
{% if ci-fmt %}
|
||||
format:
|
||||
name: Format
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -53,3 +57,4 @@ jobs:
|
|||
components: rustfmt
|
||||
- name: Run cargo fmt
|
||||
run: cargo fmt --all -- --check
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue