Bump rust version #109
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
name: Rust | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install toolchain | |
uses: dtolnay/[email protected] | |
- name: Build | |
run: cargo build --verbose --all-targets | |
- name: Run tests | |
run: cargo test --verbose --all-targets | |
coverage: | |
name: Coverage | |
runs-on: ubuntu-22.04 | |
container: | |
image: xd009642/tarpaulin:0.22.0-slim | |
options: --security-opt seccomp=unconfined | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Generate code coverage | |
run: | | |
cargo tarpaulin --verbose --timeout 120 --exclude-files shootout --exclude-files benches --exclude-files fuzz --out Lcov -- --test-threads 1 | |
- name: upload to Coveralls | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: './lcov.info' | |
clippy: | |
name: Lint 📎 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install toolchain | |
uses: dtolnay/[email protected] | |
with: | |
components: clippy | |
- name: Run clippy | |
uses: actions-rs-plus/[email protected] | |
with: | |
args: --all-features |