From 7e4e25d9fbac403b0d46e8081baf00fb3865d56d Mon Sep 17 00:00:00 2001 From: hozan23 Date: Thu, 27 Jun 2024 23:14:04 +0200 Subject: github/workflow/rust: add build with tokio feature --- .github/workflows/rust.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to '.github') diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e3abfbd..dd2ef4f 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 test --workspace --verbose + - name: Run clippy run: cargo clippy -- -D warnings - - name: Run fmt - run: cargo fmt -- --check + - name: Run fmt + run: cargo fmt --all -- --check -- cgit v1.2.3