Add WT-FROST to the worker gadget #1626
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
name: check | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
workflow_dispatch: | |
env: | |
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git | |
jobs: | |
# code coverage job; moved to own workflow file due to running out of disk space. | |
# The runner will stop working when the machine runs out of disk space. Free space left: 72 MB | |
coverage: | |
name: coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Install apt dependencies | |
run: | | |
sudo apt-get update && \ | |
sudo apt-get install -y clang libssl-dev llvm libudev-dev libgmp3-dev protobuf-compiler && \ | |
sudo rm -rf /var/lib/apt/lists/* | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
targets: wasm32-unknown-unknown | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
- name: Install Tarpaulin | |
run: cargo install cargo-tarpaulin | |
- name: Run Tarpaulin | |
run : cargo tarpaulin --out xml -p pallet-dkg-metadata -p pallet-dkg-proposal-handler -p pallet-dkg-proposals -p dkg-primitives -p dkg-runtime-primitives --locked --jobs 16 --timeout 3600 --skip-clean -- --test-threads 16 | |
- name: Upload CodeCov | |
uses: codecov/codecov-action@v2 | |