From eb1f229ada2046cff52b439f895d4b838f47af90 Mon Sep 17 00:00:00 2001 From: xla Date: Wed, 29 Sep 2021 13:27:41 +0000 Subject: [PATCH] ci: Build and check tools So far only the kvstore tests ran as part of the Github workfows. This would leave opportunity for changes to introduce breakage to the builds of the tools. In this change the same build and clippy stages are introduced for the tools workspace that currently run for the top-level one. Signed-off-by: xla --- .cargo/config | 1 + .github/workflows/build.yml | 12 ++++++++++++ .github/workflows/rust.yml | 15 +++++++++++++++ 3 files changed, 28 insertions(+) diff --git a/.cargo/config b/.cargo/config index 3a3045ebd..44cee77fd 100644 --- a/.cargo/config +++ b/.cargo/config @@ -3,4 +3,5 @@ build-all = "build --workspace --all-targets --" build-wasm-tendermint = "build -p tendermint --manifest-path tendermint/Cargo.toml --target wasm32-unknown-unknown --release --no-default-features --" build-wasm-light-client = "build -p tendermint-light-client --manifest-path light-client/Cargo.toml --target wasm32-unknown-unknown --release --no-default-features --" build-abci = "build --manifest-path abci/Cargo.toml --bin kvstore-rs --features binary,kvstore-app" +build-tools = "build --manifest-path tools/Cargo.toml --all-features --all-targets --workspace" test-all-features = "test --all-features --no-fail-fast" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 284645a01..6864adb89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,3 +44,15 @@ jobs: - uses: actions-rs/cargo@v1 with: command: build-wasm-light-client + + tools: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: actions-rs/cargo@v1 + with: + command: build-tools diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 35075051c..615d72b76 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -46,6 +46,21 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} args: --all-features --all-targets -- -Dwarnings -Drust-2018-idioms + clippy-tools-output: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + components: clippy + override: true + - uses: actions-rs/clippy-check@v1 + with: + name: clippy-tools-results + token: ${{ secrets.GITHUB_TOKEN }} + args: --manifest-path tools/kvstore-test/Cargo.toml --all-features --all-targets -- -Dwarnings -Drust-2018-idioms + docs: runs-on: ubuntu-latest steps: