1cbd624adSopenharmony_ci#!/bin/bash 2cbd624adSopenharmony_ci# Ensure formatting and clippy is done on nightly. 3cbd624adSopenharmony_ci 4cbd624adSopenharmony_ciset -e 5cbd624adSopenharmony_ci 6cbd624adSopenharmony_ci# Change to our project home. 7cbd624adSopenharmony_ciscript_dir=`dirname "${BASH_SOURCE[0]}"` 8cbd624adSopenharmony_cicd "$script_dir"/.. 9cbd624adSopenharmony_ci 10cbd624adSopenharmony_ci# Make sure we error on warnings, and don't format in-place. 11cbd624adSopenharmony_ci 12cbd624adSopenharmony_ci# Do the formatting and clippy for all our project workspaces. 13cbd624adSopenharmony_cicargo +nightly fmt -- --check 14cbd624adSopenharmony_cicargo +nightly clippy --no-default-features -- --deny warnings 15cbd624adSopenharmony_cicargo +nightly clippy --features=compact -- --deny warnings 16cbd624adSopenharmony_cicargo +nightly clippy --features=alloc -- --deny warnings 17cbd624adSopenharmony_ci 18