Skip to content

update exec edition #17

update exec edition

update exec edition #17

Workflow file for this run

name: Codecov
on:
# Temporarily disabled
push:
pull_request:
# push:
# branches:
# - master
# pull_request:
# branches:
# - master
# types: [opened, reopened, synchronize]
jobs:
codecov-grcov:
name: Generate code coverage
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- name: install toolchain according to rust-toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: default
override: true
components: llvm-tools-preview
- name: Checkout sources
uses: actions/checkout@v2
- name: Install grcov
run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install grcov; fi
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
env:
RUSTFLAGS: '-Zinstrument-coverage'
RUSTDOCFLAGS: '-Zinstrument-coverage'
- name: Run tests
env:
RUSTFLAGS: '-Zinstrument-coverage'
RUSTDOCFLAGS: '-Zinstrument-coverage'
LLVM_PROFILE_FILE: 'codecov-instrumentation-%p-%m.profraw'
run: |
cargo test -- --test-threads=1
cargo test -- --ignored --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features ws-no-park -- --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features ws-no-park -- --ignored --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --no-default-features --features threadpool-exec,cb-channel-exec,workstealing-exec,defaults,thread-pinning -- --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --no-default-features --features threadpool-exec,cb-channel-exec,workstealing-exec,defaults,thread-pinning -- --ignored --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features thread-pinning -- --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features thread-pinning -- --ignored --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features numa-aware -- --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features numa-aware -- --ignored --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features produce-metrics -- --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features produce-metrics -- --ignored --test-threads=1
- name: Run grcov
run: grcov executors/ --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov
- name: Upload to codecov.io
uses: codecov/codecov-action@v1