2022-11-21 06:35:50 +01:00
|
|
|
image: debian/stable
|
2022-11-21 06:22:01 +01:00
|
|
|
packages:
|
2022-11-21 06:38:49 +01:00
|
|
|
- curl
|
2022-11-21 06:11:41 +01:00
|
|
|
|
|
|
|
sources:
|
|
|
|
- https://git.sr.ht/~victormignot/yorokobot
|
|
|
|
|
2022-11-21 06:33:55 +01:00
|
|
|
tasks:
|
|
|
|
- setup: |
|
2022-11-21 06:39:58 +01:00
|
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -y
|
2022-11-21 06:33:55 +01:00
|
|
|
rustup toolchain install stable
|
|
|
|
rustup default stable
|
2022-11-21 06:38:49 +01:00
|
|
|
source $HOME/.cargo/env
|
2022-11-21 06:33:55 +01:00
|
|
|
|
2022-11-21 06:11:41 +01:00
|
|
|
- format-check: |
|
|
|
|
cd yorokobot
|
|
|
|
cargo fmt --check
|
|
|
|
|
|
|
|
- lint-check: |
|
|
|
|
cd yorokobot
|
|
|
|
cargo clippy
|
|
|
|
|
|
|
|
- check-build: |
|
|
|
|
cd yorokobot
|
|
|
|
cargo check
|