upodate futures-timer version #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Check code format | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: -- -D warnings | |
- name: Clippy sim | |
uses: actions-rs/cargo@v1 | |
env: | |
RUSTFLAGS: "--cfg madsim" | |
with: | |
command: clippy | |
args: -- -D warnings | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: Build std | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
- name: Build sim | |
uses: actions-rs/cargo@v1 | |
env: | |
RUSTFLAGS: "--cfg madsim" | |
with: | |
command: build | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: Test std | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --release --no-fail-fast | |
- name: Test sim | |
uses: actions-rs/cargo@v1 | |
env: | |
RUSTFLAGS: "--cfg madsim" | |
RUSTDOCFLAGS: "--cfg madsim" | |
with: | |
command: test | |
args: --release --no-fail-fast | |
bench: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: Bench | |
uses: actions-rs/cargo@v1 | |
with: | |
command: bench | |
args: -p madsim | |
doc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
override: true | |
toolchain: nightly | |
- name: Doc | |
uses: actions-rs/cargo@v1 | |
env: | |
RUSTFLAGS: "--cfg madsim" | |
RUSTDOCFLAGS: "--cfg madsim --cfg docsrs" | |
with: | |
command: doc | |
args: --no-deps |