From 574785792b8e5febee9d8c883ff921d00f17242c Mon Sep 17 00:00:00 2001 From: Kotauskas Date: Wed, 10 Jun 2020 13:17:52 +0300 Subject: [PATCH] Fixed CI --- .github/workflows/rust.yml | 31 +++++++++++++++++++++++++------ README.md | 1 + README.tpl | 1 + 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7de1dea..955bc4f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Rust +name: Build on: push: @@ -7,11 +7,12 @@ on: branches: [ master ] jobs: - check: - name: cargo check and Clippy + clippy_nightly: + name: Clippy check on nightly runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout the repository + uses: actions/checkout@v2 - name: Install latest nightly uses: actions-rs/toolchain@v1 with: @@ -22,11 +23,29 @@ jobs: # `cargo check` command here will use installed `nightly` # as it is set as an "override" for current directory - - name: Run cargo check + - name: Run Clippy uses: actions-rs/cargo@v1 with: - command: check + command: clippy + + clippy_stable: + name: Clippy check on stable + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + components: rustfmt, clippy + + # `cargo check` command here will use installed `nightly` + # as it is set as an "override" for current directory + - name: Run Clippy uses: actions-rs/cargo@v1 with: command: clippy + diff --git a/README.md b/README.md index 8da7dba..0515a72 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # BigBit [![Crates.io](https://img.shields.io/crates/v/bigbit)](https://crates.io/crates/bitbit "BigBit on Crates.io") [![Docs.rs](https://img.shields.io/badge/documentation-docs.rs-informational)](https://docs.rs/bigbit "BigBit on Docs.rs") +[![Build Status](https://github.com/kotauskas/bigbit.rs/workflows/Rust/badge.svg)](https://github.com/kotauskas/bigbit.rs/actions "GitHub Actions page for BigBit") This is an implementation of the [BigBit standard][BigBitStd], used for representing arbitrarily large numbers and strings in a compact way. The only implementation provided by the author is [a Node.js implementation](https://github.com/bigbit/bigbitjs "BigBit.js on GitHub") — this crate aims to implement the functionality presented there with idiomatic Rust code. diff --git a/README.tpl b/README.tpl index a444cb2..a832a0e 100644 --- a/README.tpl +++ b/README.tpl @@ -1,5 +1,6 @@ # BigBit [![Crates.io](https://img.shields.io/crates/v/bigbit)](https://crates.io/crates/bitbit "BigBit on Crates.io") [![Docs.rs](https://img.shields.io/badge/documentation-docs.rs-informational)](https://docs.rs/bigbit "BigBit on Docs.rs") +[![Build Status](https://github.com/kotauskas/bigbit.rs/workflows/Build/badge.svg)](https://github.com/kotauskas/bigbit.rs/actions "GitHub Actions page for BigBit") {{readme}} \ No newline at end of file