mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-02-12 01:55:48 +00:00
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.
This commit is contained in:
parent
e9f94119bc
commit
274f860202
8
.github/workflows/rust.yml
vendored
8
.github/workflows/rust.yml
vendored
@ -14,6 +14,14 @@ jobs:
|
|||||||
toolchain: 1.37.0
|
toolchain: 1.37.0
|
||||||
override: true
|
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
|
# Ensure all code has been formatted with rustfmt
|
||||||
- run: rustup component add rustfmt
|
- run: rustup component add rustfmt
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
|
Loading…
x
Reference in New Issue
Block a user