~jplatte/turbo.fish

5024ac67b40bc00871ecf875487a79eac1e0f90c — Jonas Platte 8 months ago 101174e master
Add .build.yml
1 files changed, 16 insertions(+), 0 deletions(-)

A .build.yml
A .build.yml => .build.yml +16 -0
@@ 0,0 1,16 @@
image: archlinux
sources:
  - https://github.com/jplatte/turbo.fish
packages:
  - rustup
tasks:
  - setup_toolchain: |
      rustup toolchain install nightly
      rustup default nightly
      rustup component add rustfmt || true
      rustup component add clippy || true
  - run_checks: |
      cd turbo.fish
      cargo check --verbose
      if ( rustup component list | grep -q rustfmt ); then cargo fmt -- --check; fi
      if ( rustup component list | grep -q clippy ); then cargo clippy -- -A clippy::zero_width_space; fi