Skip to content

Update dependencies, bump version #32

Update dependencies, bump version

Update dependencies, bump version #32

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust: [stable]
os: [ubuntu-latest]
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Cache target
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.os }}-cargo--${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
components: clippy, rustfmt
toolchain: ${{ matrix.rust }}
override: true
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
- name: Format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Doc Generation
uses: actions-rs/cargo@v1
with:
command: doc
args: --all-features
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust: [stable]
os: [ubuntu-latest]
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Cache target
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.os }}-cargo--${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
components: clippy
toolchain: ${{ matrix.rust }}
override: true
- name: Build debug binary
uses: actions-rs/cargo@v1
with:
command: build
- name: Build release binary
uses: actions-rs/cargo@v1
with:
command: build
args: --release
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust: [stable]
os: [ubuntu-latest]
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Cache target
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.os }}-cargo--${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
components: clippy
toolchain: ${{ matrix.rust }}
override: true
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features -- --test-threads=1