This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
update #84
Workflow file for this run
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: Build | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: "-Dwarnings" | |
jobs: | |
build: | |
runs-on: self-hosted | |
continue-on-error: false | |
defaults: | |
run: | |
working-directory: ./eggstrain | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust Toolchain | |
run: rustup toolchain uninstall stable && | |
rustup toolchain install stable && | |
rustup default stable && | |
rustup component add rustfmt && | |
rustup component add clippy | |
- name: Install Protobuf | |
run: apt-get install -y protobuf-compiler | |
- name: Install cargo-llvm-cov | |
uses: taiki-e/install-action@cargo-llvm-cov | |
- name: Format check | |
run: cargo fmt --all -- --check | |
- name: Clippy check | |
run: cargo clippy --all-targets --all-features | |
- name: Generate code coverage | |
run: cargo llvm-cov --all-features --workspace --codecov --output-path lcov.info | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: code-coverage-report | |
path: lcov.info | |
retention-days: 3 | |
- name: Upload to codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: 61413784-8a4a-47db-af75-cfd64f861513 | |
files: lcov.info | |
name: codecov-umbrella | |
fail_ci_if_error: true | |
verbose: true |