From 274f860202d18350c9489cb7d3f3f3db717f8def Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 18 Sep 2019 17:08:58 +0100 Subject: [PATCH] Actions: Build before formatting check cargo fmt does not build the code, and running it in a fresh clone of the codebase will fail because the protobuf code has not been generated. --- .github/workflows/rust.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5f76fb0..85231fa 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -14,6 +14,14 @@ jobs: toolchain: 1.37.0 override: true + # cargo fmt does not build the code, and running it in a fresh clone of + # the codebase will fail because the protobuf code has not been generated. + - name: cargo build + uses: actions-rs/cargo@v1 + with: + command: build + args: --all + # Ensure all code has been formatted with rustfmt - run: rustup component add rustfmt - name: Check formatting