From cf016f3cf33bd0f7e1045b0b91d7bc105f658265 Mon Sep 17 00:00:00 2001 From: hozan23 Date: Thu, 27 Jun 2024 23:14:04 +0200 Subject: [PATCH] add build with tokio feature to github workflow --- .github/workflows/rust.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e3abfbdd..f4ac3681 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -4,7 +4,7 @@ on: push: pull_request: -env: +env: CARGO_TERM_COLOR: always jobs: @@ -18,11 +18,13 @@ jobs: steps: - uses: actions/checkout@v3 - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - - name: Build - run: cargo build --verbose + - name: Build with smol + run: cargo build --workspace --verbose + - name: Build with tokio + run: cargo build --workspace --no-default-features --features tokio --verbose - name: Run tests - run: cargo test --verbose - - name: Run clippy - run: cargo clippy -- -D warnings - - name: Run fmt - run: cargo fmt -- --check + run: cargo test --workspace --verbose + - name: Run clippy + run: cargo clippy --workspace -- -D warnings + - name: Run fmt + run: cargo fmt --workspace -- --check