Update ci

This commit is contained in:
quininer 2019-12-02 23:55:11 +08:00
parent 02028c54b8
commit a9b20c509c
4 changed files with 17 additions and 5 deletions

View File

@ -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 }}

View File

@ -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"

View File

@ -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)

View File

@ -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"