Release mcan/0.5.0 (#48) #162
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
on: | |
push: | |
branches: master | |
pull_request: | |
name: Run CI | |
jobs: | |
check: | |
name: check | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
override: true | |
- name: Cache Dependencies | |
uses: Swatinem/[email protected] | |
- name: Run cargo check | |
uses: actions-rs/[email protected] | |
with: | |
command: check | |
args: --all-features | |
doc: | |
name: doc | |
runs-on: ubuntu-latest | |
env: | |
RUSTDOCFLAGS: -D warnings | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
override: true | |
- name: Cache Dependencies | |
uses: Swatinem/[email protected] | |
- name: Run cargo doc | |
uses: actions-rs/[email protected] | |
with: | |
command: doc | |
args: --all-features | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
override: true | |
- name: Cache Dependencies | |
uses: Swatinem/[email protected] | |
- name: Run cargo test | |
uses: actions-rs/[email protected] | |
with: | |
command: test | |
args: --all-features | |
fmt: | |
name: rustfmt | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: nightly | |
override: true | |
- name: Install rustfmt | |
run: rustup component add rustfmt | |
- name: Run cargo fmt | |
uses: actions-rs/[email protected] | |
with: | |
command: fmt | |
args: --all -- --check | |
clippy: | |
name: clippy | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
override: true | |
- name: Install clippy | |
run: rustup component add clippy | |
- name: Cache Dependencies | |
uses: Swatinem/[email protected] | |
- name: Run cargo clippy | |
uses: actions-rs/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --no-deps --all-features |