From a9b20c509c61c907a3bf019a3d89e5588f64693f Mon Sep 17 00:00:00 2001 From: quininer Date: Mon, 2 Dec 2019 23:55:11 +0800 Subject: [PATCH] Update ci --- .github/workflows/ci.yml | 17 +++++++++++++++-- Cargo.toml | 2 +- README.md | 2 +- examples/client/Cargo.toml | 1 - 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12acc8c..d354dd7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: Rust on: [push, pull_request] jobs: - cov: + test: runs-on: ubuntu-latest steps: @@ -12,8 +12,14 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: nightly + profile: minimal override: true + - uses: actions/cache@v1 + with: + path: ~/.cargo + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }} + - uses: actions-rs/cargo@v1 with: command: test @@ -22,11 +28,18 @@ jobs: 'CARGO_INCREMENTAL': '0' 'RUSTFLAGS': '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads' + - name: Check + run: | + cd examples/client + cargo check + cd ../server + cargo check + - id: grcov uses: actions-rs/grcov@v0.1 - name: Update Codecov - uses: codecov/codecov-action@v1.0.3 + uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} file: ${{ steps.grcov.outputs.report }} diff --git a/Cargo.toml b/Cargo.toml index cf10494..e30cb12 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ categories = ["asynchronous", "cryptography", "network-programming"] edition = "2018" [badges] -github-actions = { repository = "quininer/tokio-rustls", workflow = "ci" } +github-actions = { repository = "quininer/tokio-rustls", workflow = "Rust" } [dependencies] bytes = "0.5" diff --git a/README.md b/README.md index 70ab646..751da83 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # tokio-rustls -[![github actions](https://github.com/quininer/tokio-rustls/workflows/ci/badge.svg)](https://github.com/quininer/tokio-rustls/actions) +[![github actions](https://github.com/quininer/tokio-rustls/workflows/Rust/badge.svg)](https://github.com/quininer/tokio-rustls/actions) [![codecov](https://codecov.io/gh/quininer/tokio-rustls/branch/master/graph/badge.svg)](https://codecov.io/gh/quininer/tokio-rustls) [![crates](https://img.shields.io/crates/v/tokio-rustls.svg)](https://crates.io/crates/tokio-rustls) [![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/quininer/tokio-rustls/blob/master/LICENSE-MIT) diff --git a/examples/client/Cargo.toml b/examples/client/Cargo.toml index 20313b9..40162f8 100644 --- a/examples/client/Cargo.toml +++ b/examples/client/Cargo.toml @@ -10,4 +10,3 @@ tokio = { version = "0.2", features = [ "net", "io-std", "io-util", "rt-threaded structopt = "0.2" tokio-rustls = { path = "../.." } webpki-roots = "0.18" -tokio-stdin-stdout = "0.1"