Skip to content

fix shardtree initialization failure #812

fix shardtree initialization failure

fix shardtree initialization failure #812

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main, dev]
workflow_dispatch:
jobs:
cargo-checkmate:
uses: ./.github/workflows/cargo-checkmate.yaml
reject-trailing-whitespace:
name: Reject trailing whitespace
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Reject trailing whitespace
run: ./utils/trailing-whitespace.sh reject
cargo-test:
name: Cargo test
runs-on: ubuntu-22.04
env:
RUSTFLAGS: -D warnings
container:
image: zingodevops/ci-build:001
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Symlink lightwalletd and zcash binaries
run: ln -s /usr/bin/lightwalletd /usr/bin/zcashd /usr/bin/zcash-cli ./zingocli/regtest/bin/
- name: Symlink zcash parameters
run: ln -s /root/.zcash-params /github/home
- name: Cargo cache
id: cargo-cache
uses: actions/cache@v3
with:
# Following cargo cache recommendations:
# https://doc.rust-lang.org/cargo/guide/cargo-home.html
# added 'target' directory to skip compiling dependencies
path: |
/root/.cargo/.crates.toml
/root/.cargo/.crates2.json
/root/.cargo/bin/
/root/.cargo/registry/index/
/root/.cargo/registry/cache/
/root/.cargo/registry/git/db/
target/
key: cargo-zingolib-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-zingolib
- name: Run tests and generate coverage
uses: actions-rs/cargo@v1
with:
command: tarpaulin
args: --all-features --verbose --workspace --avoid-cfg-tarpaulin --skip-clean --ignore-tests --release --timeout 3000 --out xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./cobertura.xml
# fail_ci_if_error: true
create-timestamp:
uses: zingolabs/zingo-mobile/.github/workflows/create-timestamp.yaml@dev
create-cache-key:
uses: zingolabs/zingo-mobile/.github/workflows/create-cache-key.yaml@dev
build-android:
strategy:
matrix:
arch: [ x86_64, armeabi-v7a ]
uses: zingolabs/zingo-mobile/.github/workflows/build.yaml@dev
needs: create-cache-key
with:
cache-key: ${{ needs.create-cache-key.outputs.cache-key }}
arch: ${{ matrix.arch }}
integration-test-android:
uses: zingolabs/zingo-mobile/.github/workflows/integration-test.yaml@dev
needs: [ create-timestamp, create-cache-key, build-android ]
with:
timestamp: ${{ needs.create-timestamp.outputs.timestamp }}
cache-key: ${{ needs.create-cache-key.outputs.cache-key }}
abi: armeabi-v7a