Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Sep 27, 2024
1 parent 054ce4d commit d882013
Showing 1 changed file with 32 additions and 12 deletions.
44 changes: 32 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:

jobs:
# 1
check:
tokio_check:
name: Rust project check
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -36,35 +36,55 @@ jobs:
command: check
args: --features "tokio, futures"

- name: Run cargo clippy on monoio
uses: actions-rs/cargo@v1
with:
command: check
args: --features "monoio, futures"

- name: Run cargo build on tokio
uses: actions-rs/cargo@v1
with:
command: build
args: --features "tokio, futures"

- name: Run cargo build on monoio
- name: Run cargo test on tokio
uses: actions-rs/cargo@v1
with:
command: build
command: test
args: --workspace --features "tokio, futures"

monoio_check:
name: Rust project check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install latest
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy

# `cargo check` command here will use installed `nightly`
# as it is set as an "override" for current directory

- name: Run cargo clippy on monoio
uses: actions-rs/cargo@v1
with:
command: check
args: --features "monoio, futures"

- name: Run cargo test on tokio
- name: Run cargo build on monoio
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --features "tokio, futures"
command: build
args: --features "monoio, futures"

- name: Run cargo test on monoio
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --features "monoio, futures"

# 2
fmt:
name: Rust fmt
Expand Down

0 comments on commit d882013

Please sign in to comment.