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] on: [push, pull_request]
jobs: jobs:
cov: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -12,8 +12,14 @@ jobs:
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
toolchain: nightly toolchain: nightly
profile: minimal
override: true override: true
- uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: test command: test
@ -22,11 +28,18 @@ jobs:
'CARGO_INCREMENTAL': '0' 'CARGO_INCREMENTAL': '0'
'RUSTFLAGS': '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads' '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 - id: grcov
uses: actions-rs/grcov@v0.1 uses: actions-rs/grcov@v0.1
- name: Update Codecov - name: Update Codecov
uses: codecov/codecov-action@v1.0.3 uses: codecov/codecov-action@v1
with: with:
token: ${{ secrets.CODECOV_TOKEN }} token: ${{ secrets.CODECOV_TOKEN }}
file: ${{ steps.grcov.outputs.report }} file: ${{ steps.grcov.outputs.report }}

View File

@ -12,7 +12,7 @@ categories = ["asynchronous", "cryptography", "network-programming"]
edition = "2018" edition = "2018"
[badges] [badges]
github-actions = { repository = "quininer/tokio-rustls", workflow = "ci" } github-actions = { repository = "quininer/tokio-rustls", workflow = "Rust" }
[dependencies] [dependencies]
bytes = "0.5" bytes = "0.5"

View File

@ -1,5 +1,5 @@
# tokio-rustls # 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) [![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) [![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) [![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" structopt = "0.2"
tokio-rustls = { path = "../.." } tokio-rustls = { path = "../.." }
webpki-roots = "0.18" webpki-roots = "0.18"
tokio-stdin-stdout = "0.1"