ci: add rustup step

This commit is contained in:
notohh 2024-02-25 12:12:53 -05:00
parent f517307538
commit ca05de5cd5
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -1,17 +1,20 @@
when: when:
- event: pull_request - event: pull_request
- event: push - event: push
- path: - path:
include: ['*.rs'] include: ["*.rs"]
steps: steps:
cargo_clippy: configure_rustup:
image: rust image: rust
commands: | commands: |
rustup update stable && rustup default stable rustup update stable && rustup default stable
rustup component add clippy rustup component add clippy
# cargo clippy --all-targets --all-features cargo_clippy:
image: rust
commands:
- cargo clippy --all-targets --all-features
cargo_test: cargo_test:
image: rust image: rust
commands: commands:
- cargo test - cargo test --all-features