Switch to dual license and add license headers to files #8
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: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install minimal stable with clippy and rustfmt | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: rustfmt, clippy | |
- uses: actions-rs/cargo@v1 | |
name: Build (all features) | |
with: | |
command: build | |
args: --verbose --all-features | |
- uses: actions-rs/cargo@v1 | |
name: Build (no features) | |
with: | |
command: build | |
args: --verbose --no-default-features | |
- uses: actions-rs/cargo@v1 | |
name: Test (all features) | |
with: | |
command: test | |
args: --verbose --all-features | |
- uses: actions-rs/cargo@v1 | |
name: Test (no features) | |
with: | |
command: test | |
args: --verbose --no-default-features | |
- name: Format | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Clippy (no features) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --no-default-features | |
- name: Clippy (all features) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --all-features |