aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-06-27 23:14:04 +0200
committerhozan23 <hozan23@karyontech.net>2024-06-27 23:29:59 +0200
commit7e4e25d9fbac403b0d46e8081baf00fb3865d56d (patch)
treeec95937ee0f508dd870419e99fabd2d3f498014f
parentb8b5f00e9695f46ea30af3ce63aec6dd17f356ae (diff)
github/workflow/rust: add build with tokio feature
-rw-r--r--.github/workflows/rust.yml16
1 files changed, 9 insertions, 7 deletions
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