feat: add publish_crates.yml #127
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
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
name: Upload Coverage | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: full | |
# 40 MiB stack | |
RUST_MIN_STACK: 40971520 | |
RUST_LOG: "citadel=warn" | |
jobs: | |
coverage: | |
runs-on: macos-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: rustup toolchain install stable --component llvm-tools-preview | |
- uses: taiki-e/install-action@nextest | |
- name: Install cargo-llvm-cov | |
uses: taiki-e/install-action@cargo-llvm-cov | |
- uses: Swatinem/rust-cache@v1 | |
- name: Run llvm-cov nextest | |
uses: nick-fields/retry@v3 | |
env: | |
SKIP_EXT_BACKENDS: "true" | |
with: | |
max_attempts: 3 | |
retry_on: error | |
command: cargo llvm-cov nextest --features=filesystem,localhost-testing,multi-threaded -p citadel_sdk -p citadel_user -p citadel_crypt -p citadel_pqcrypto -p citadel_wire -p netbeam -p async_ip --lcov --output-path ${GITHUB_WORKSPACE}/lcov.info --ignore-filename-regex="firebase-rtdb/src/lib.rs|netbeam/src/sync/operations/net_join.rs|netbeam/src/sync/operations/net_select.rs|citadel_sdk/src/test_common.rs|citadel_wire/src/upnp_handler.rs" | |
- uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ${{ env.GITHUB_WORKSPACE }}/lcov.info |