summaryrefslogtreecommitdiffstats
path: root/.builds
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2020-06-23 13:37:14 +0300
committerChristian Duerr <contact@christianduerr.com>2020-06-23 11:13:14 +0000
commite4e0218edef0c0401649ce80562eacb6820e213e (patch)
tree6a0d49243ed2ddf82e16533fb575a896fb78e066 /.builds
parent43c0ad6ea9d2467ccf867a310c4f1e30f5b627c6 (diff)
Run rustfmt on sr.ht
This should provide more clear feedback whether rustfmt job is failed or not.
Diffstat (limited to '.builds')
-rw-r--r--.builds/rustfmt.yml10
1 files changed, 10 insertions, 0 deletions
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