diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d9eff2f9d1..b3bcd2422e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -49,17 +49,25 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Install Rust Toolchain Components + - name: Install rustfmt uses: actions-rs/toolchain@v1 with: - components: clippy, rustfmt + components: rustfmt override: true toolchain: stable + - name: Install clippy nightly + uses: actions-rs/toolchain@v1 + with: + components: clippy + toolchain: nightly + - uses: Swatinem/rust-cache@v2 + with: + key: "clippy-nightly" - name: Clippy - run: cargo clippy --all --all-targets + run: cargo +nightly clippy --all --all-targets - name: Format run: cargo fmt --all -- --check diff --git a/justfile b/justfile index 0adb27366f..01e8292591 100644 --- a/justfile +++ b/justfile @@ -15,10 +15,10 @@ fmt: cargo fmt clippy: - cargo clippy --all --all-targets -- -D warnings + cargo +nightly clippy --all --all-targets -- -D warnings lclippy: - cargo lclippy --all --all-targets -- -D warnings + cargo +nightly lclippy --all --all-targets -- -D warnings deploy branch chain domain: ssh root@{{domain}} "mkdir -p deploy \