From 323284bb896d45f754120d90eb2e8aa1e1bdfa3d Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Mon, 20 Nov 2023 13:17:23 +0100 Subject: [PATCH] ci: add MSRV lint job --- .github/workflows/lint.yml | 23 +++++++++++++++++++++++ Cargo.toml | 2 +- README.md | 7 +++++++ 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 61a28bcb777b..60341fcb805b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -32,6 +32,29 @@ jobs: env: RUSTFLAGS: -D warnings + msrv: + name: MSRV / ${{ matrix.network }} + runs-on: ubuntu-latest + timeout-minutes: 30 + strategy: + matrix: + include: + - binary: reth + network: ethereum + - binary: op-reth + network: optimism + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: "1.70" # MSRV + - uses: Swatinem/rust-cache@v2 + with: + cache-on-failure: true + - run: cargo build --bin "${{ matrix.binary }}" --workspace --features "${{ matrix.network }}" + env: + RUSTFLAGS: -D warnings + docs: name: docs runs-on: ubuntu-latest diff --git a/Cargo.toml b/Cargo.toml index d0bbf106e879..494015c7fe33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -64,7 +64,7 @@ resolver = "2" [workspace.package] version = "0.1.0-alpha.10" edition = "2021" -rust-version = "1.70" # Remember to update clippy.toml and README.md +rust-version = "1.70" license = "MIT OR Apache-2.0" homepage = "https://paradigmxyz.github.io/reth" repository = "https://github.com/paradigmxyz/reth" diff --git a/README.md b/README.md index 8dd1c987d7a4..910a7cf401d2 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,13 @@ If you want to contribute, or follow along with contributor discussion, you can ### Building and testing + + The Minimum Supported Rust Version (MSRV) of this project is [1.70.0](https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html). See the book for detailed instructions on how to [build from source](https://paradigmxyz.github.io/reth/installation/source.html).