refactor: add support for multiple tasks situation #77
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: Rust | |
on: | |
push: | |
branches: [ "stable" ] | |
pull_request: | |
branches: [ "stable" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_default: | |
name: Compilation/Style/Tests (Default) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run All Tests | |
run: cargo test --verbose | |
- name: Clippy | |
run: cargo clippy | |
- name: Format | |
run: cargo fmt --check | |
build_multi: | |
name: Compilation/Style/Tests (Multi) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --features multi --verbose | |
- name: Run All Tests | |
run: cargo test --features multi --verbose | |
- name: Clippy | |
run: cargo clippy --features multi | |
- name: Format | |
run: cargo fmt --check |