Skip to content

Commit

Permalink
add build with tokio feature to github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hozan23 committed Jun 27, 2024
1 parent b8b5f00 commit cf016f3
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
pull_request:

env:
env:
CARGO_TERM_COLOR: always

jobs:
Expand All @@ -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

0 comments on commit cf016f3

Please sign in to comment.