Update CI jobs #834
Workflow file for this run
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: | |
pull_request: | |
push: | |
branches: master | |
name: Continuous integration | |
jobs: | |
analyze: | |
name: Code Analysis | |
uses: dusk-network/.github/.github/workflows/code-analysis.yml@main | |
with: | |
clippy_default: false | |
clippy_args: --features=rkyv/size_32 | |
dusk_analyzer: | |
name: Dusk Analyzer | |
uses: dusk-network/.github/.github/workflows/dusk-analysis.yml@main | |
build_docs: | |
name: Build documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: make doc | |
- run: make doc-internal | |
build_no_std: | |
name: Build no_std | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup target add thumbv6m-none-eabi | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build project with alloc | |
run: cargo build --release --no-default-features --features alloc --target thumbv6m-none-eabi | |
- name: Build project without alloc | |
run: cargo build --release --no-default-features --target thumbv6m-none-eabi | |
ci: | |
name: Test with all features | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: sudo apt install -y kcov | |
- uses: Swatinem/rust-cache@v2 | |
- name: Collect coverage | |
run: | | |
RUSTFLAGS='-C link-dead-code' cargo test --no-run --all-features | |
find target/debug/deps -type f -executable ! -name "*.*" | | |
xargs -n1 kcov --exclude-pattern=/.cargo,/usr/lib --verify target/cov | |
- name: Upload coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} |