From e4e0218edef0c0401649ce80562eacb6820e213e Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Tue, 23 Jun 2020 13:37:14 +0300 Subject: Run rustfmt on sr.ht This should provide more clear feedback whether rustfmt job is failed or not. --- .builds/rustfmt.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .builds/rustfmt.yml (limited to '.builds') diff --git a/.builds/rustfmt.yml b/.builds/rustfmt.yml new file mode 100644 index 00000000..fe863e47 --- /dev/null +++ b/.builds/rustfmt.yml @@ -0,0 +1,10 @@ +image: archlinux +sources: + - https://github.com/alacritty/alacritty +tasks: + - rustup: | + curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly --profile minimal + $HOME/.cargo/bin/rustup component add rustfmt + - rustfmt: | + cd alacritty + $HOME/.cargo/bin/cargo fmt -- --check -- cgit v1.2.3-54-g00ecf