Skip to content

v1.0.0

v1.0.0 #12

Workflow file for this run

name: Build
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.76
profile: minimal
override: true
target: x86_64-unknown-linux-musl
components: rustfmt, clippy
- name: Run Rust Cache
uses: Swatinem/[email protected]
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Formatting
run: cargo fmt --all -- --check
- name: Linting
run: cargo clippy -- -D warnings
- name: Build
run: cargo build
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --no-clean --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
slug: amantoux/quill-delta-rs
files: lcov.info
fail_ci_if_error: true