From 0e3fbc17d4c4a2b6ff7171d430eaa40e68b3b81c Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 2 Jun 2021 17:04:49 +0300 Subject: [PATCH] Ad MSRV and github CI script. --- .github/workflows/ci.yml | 49 ++++++++++++++++++++++++++++++++++++++++ src/lib.rs | 1 + 2 files changed, 50 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..19483b7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,49 @@ +name: Continuous Integration + +on: [push, pull_request] + +jobs: + build_and_test: + name: Build, Test, Format & Lint + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + rust: [stable, beta, nightly, 1.24.0] + + steps: + - uses: actions/checkout@v2 + - name: ⚡ Cache + uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + + - name: 🔨 Build + uses: actions-rs/cargo@v1 + with: + command: build + + - name: 🔎 Test + uses: actions-rs/cargo@v1 + with: + command: test + + - name: Format + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --check + + - name: Lint + uses: actions-rs/cargo@v1 + with: + command: clippy \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 02c26bf..0ecf25b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,7 @@ //! //! ## Quickstart //! +//! Minimum Supported Rust Version: 1.24.0 //! Add `evalexpr` as dependency to your `Cargo.toml`: //! //! ```toml