This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
Merge Erigon fixes over the past two weeks back into main #67
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: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Remove Pre-installed Rust | |
run: | | |
rustup toolchain remove stable | |
rm -f /home/runner/.cargo/bin/rust-analyzer | |
rm -f /home/runner/.cargo/bin/rustfmt | |
rm -f /home/runner/.cargo/bin/cargo-fmt | |
- name: Install Rust Nightly | |
run: | | |
rustup update nightly | |
rustup default nightly | |
rustup component add rustfmt --toolchain nightly | |
rustup component add clippy --toolchain nightly | |
- name: Get Rust Version | |
run: rustc --version > rust-version.txt | |
- name: Cache Cargo Registry and Build Outputs | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-rust-${{ hashFiles('rust-version.txt', '**/Cargo.lock') }} | |
- name: Run cargo clippy | |
run: cargo +nightly clippy -- -D warnings | |
- name: Run cargo fmt --check | |
run: cargo +nightly fmt --all -- --check | |
- name: Run cargo test | |
run: cargo test |