tokio-rustls/.github/workflows/ci.yml

46 lines
1000 B
YAML
Raw Normal View History

2019-10-31 16:04:06 +00:00
name: Rust
on: [push, pull_request]
jobs:
2019-12-02 15:55:11 +00:00
test:
2019-10-31 16:04:06 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
2019-12-02 15:55:11 +00:00
profile: minimal
2019-10-31 16:04:06 +00:00
override: true
2019-12-02 15:55:11 +00:00
- uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
2019-10-31 16:04:06 +00:00
- uses: actions-rs/cargo@v1
with:
command: test
args: --features early-data
env:
'CARGO_INCREMENTAL': '0'
'RUSTFLAGS': '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads'
2019-12-02 15:55:11 +00:00
- name: Check
run: |
cd examples/client
cargo check
cd ../server
cargo check
2019-10-31 16:04:06 +00:00
- id: grcov
uses: actions-rs/grcov@v0.1
- name: Update Codecov
2019-12-02 15:55:11 +00:00
uses: codecov/codecov-action@v1
2019-10-31 16:04:06 +00:00
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ${{ steps.grcov.outputs.report }}