Update Rust crate serde to v1.0.217 #252
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: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
name: Build | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
components: clippy, rustfmt | |
- uses: actions-rs/[email protected] | |
with: | |
crate: sccache | |
use-tool-cache: true | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/sccache | |
key: ${{ runner.os }}-sccache-lint-${{ hashFiles('**/Cargo.lock') }} | |
- name: Rustfmt | |
env: | |
RUSTC_WRAPPER: sccache | |
run: cargo fmt --all -- --check | |
- name: Clippy | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all-features | |
env: | |
RUSTC_WRAPPER: sccache | |
- run: sccache --show-stats | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
- uses: actions-rs/[email protected] | |
with: | |
crate: sccache | |
use-tool-cache: true | |
- run: sudo apt-get -q update && sudo apt-get install -y --no-install-recommends libsqlite3-dev | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/sccache | |
key: ${{ runner.os }}-sccache-test-${{ hashFiles('**/Cargo.lock') }} | |
- name: Tarpaulin | |
uses: actions-rs/[email protected] | |
with: | |
args: '--all-features --ignored --engine llvm' | |
env: | |
CARGO_HUSKY_DONT_INSTALL_HOOKS: true | |
RUSTC_WRAPPER: sccache | |
- uses: codecov/codecov-action@v3 | |
- run: sccache --show-stats | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
- uses: actions-rs/[email protected] | |
with: | |
crate: sccache | |
use-tool-cache: true | |
- run: sudo apt-get -q update && sudo apt-get install -y --no-install-recommends libsqlite3-dev | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/sccache | |
key: ${{ runner.os }}-sccache-build-${{ hashFiles('**/Cargo.lock') }} | |
- name: Release Build | |
env: | |
RUSTC_WRAPPER: sccache | |
run: cargo build --release --all-features | |
- run: sccache --show-stats |