preperation for 0.2.0 (#4) #36
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
on: push | |
name: Continuous integration | |
jobs: | |
lints: | |
name: Lints | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Run build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release | |
# - name: Run tests | |
# run: cargo test --release | |
- name: Run cargo fmt | |
uses: actions-rs/cargo@v1 | |
# No need to execute it multiple times | |
if: matrix.os == 'ubuntu-latest' | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Run clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --all-targets --all-features | |