Broker: Optimization Pass #184
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- uses: taiki-e/install-action@nextest | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: rustup update stable | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo nextest run --verbose | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- uses: taiki-e/install-action@nextest | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: | | |
rustup update nightly | |
- name: Install cargo-llvm-cov | |
run: rustup component add llvm-tools-preview --toolchain nightly | |
- uses: taiki-e/install-action@cargo-llvm-cov | |
- uses: taiki-e/install-action@nextest | |
- name: Collect coverage data (including doctests) | |
run: | | |
cargo llvm-cov --no-report nextest --ignore-filename-regex calloop-0.10.6/* | |
cargo llvm-cov report --lcov --output-path lcov.info --ignore-filename-regex calloop-0.10.6/* | |
- name: Upload coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: false | |
# docs: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: taiki-e/install-action@nextest | |
# - uses: actions/checkout@v4 | |
# - name: Install Rust | |
# run: rustup update stable | |
# - name: Build docs | |
# run: cargo doc --verbose --all-features --workspace | |
# - name: Deploy docs | |
# uses: peaceiris/actions-gh-pages@v3 | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# publish_dir: ./target/doc |