Skip to content

bump package versions #292

bump package versions

bump package versions #292

Workflow file for this run

name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Build
run: cargo build --release
shell: bash
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Install llvm tools
run: rustup component add llvm-tools-preview
shell: bash
- name: Install grcov
run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2 | tar jxf -
shell: bash
- name: Build, Instrument, Test
env:
LLVM_PROFILE_FILE: target/debug/coverage/%p-%m.profraw
CARGO_INCREMENTAL: 0
RUSTFLAGS: -Zinstrument-coverage -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort
RUSTDOCFLAGS: -Cpanic=abort
COVERALLS_TOKEN: ${{ secrets.coveralls_token }}
run: ./calculate-coverage.sh
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.codecov_token }}
file: ./target/debug/coverage/lcov.info
flags: Test
name: Cargo Tests
fail_ci_if_error: true
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Install rustfmt
run: rustup component add rustfmt
shell: bash
- name: Check formatting
run: cargo fmt -- --check --verbose
shell: bash
clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Install clippy
run: rustup component add clippy
shell: bash
- name: Check clippy lints
run: cargo clippy -- -D warnings
shell: bash