46 lines
1000 B
YAML
46 lines
1000 B
YAML
name: Rust
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- 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
|
|
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'
|
|
|
|
- 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
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
file: ${{ steps.grcov.outputs.report }}
|