Prototype minting circuits for token contracts #1485
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: Bazuka | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build binary | |
run: cargo build --release | |
- name: Archive binary artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: bin-x86_64-unknown-linux-gnu | |
path: ./target/release/bazuka | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check fmt | |
run: cargo fmt --check | |
- name: Check clippy | |
run: cargo clippy | |
- name: Run tests | |
run: cargo test --release | |
reports: | |
name: coverage | |
runs-on: ubuntu-latest | |
container: | |
image: xd009642/tarpaulin:latest | |
options: --security-opt seccomp=unconfined | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install requirements | |
run: | | |
apt update -y | |
apt install -y libssl-dev cmake | |
- name: Generate code coverage | |
run: | | |
cargo tarpaulin --verbose --all-features --workspace --timeout 600 --out Xml --release | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v2 |