Add simple taproot HD wallet to mockcore #9727
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
defaults: | |
run: | |
shell: bash | |
env: | |
RUSTFLAGS: --deny warnings | |
LANGUAGES: de fr es pt ru zh ja ko fil ar hi it nl | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust Toolchain Components | |
uses: actions-rs/toolchain@v1 | |
with: | |
override: true | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- uses: peaceiris/actions-mdbook@v1 | |
with: | |
mdbook-version: latest | |
- name: Install mdbook-i18n-helpers | |
run: cargo install mdbook-i18n-helpers | |
- name: Install mdbook-linkcheck | |
run: | | |
mkdir -p mdbook-linkcheck | |
cd mdbook-linkcheck | |
wget https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/latest/download/mdbook-linkcheck.x86_64-unknown-linux-gnu.zip | |
unzip mdbook-linkcheck.x86_64-unknown-linux-gnu.zip | |
chmod +x mdbook-linkcheck | |
pwd >> $GITHUB_PATH | |
- name: Build docs | |
run: mdbook build docs -d build | |
- name: Build all translations for docs | |
run: | | |
for lang in ${{ env.LANGUAGES }}; do | |
echo "::group::Building $lang translation" | |
MDBOOK_BOOK__LANGUAGE=$lang \ | |
mdbook build docs -d build/$lang | |
mv docs/build/$lang/html docs/build/html/$lang | |
echo "::endgroup::" | |
done | |
- name: Deploy Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/master' | |
with: | |
github_token: ${{secrets.GITHUB_TOKEN}} | |
publish_branch: gh-pages | |
publish_dir: docs/build/html | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust Toolchain Components | |
uses: actions-rs/toolchain@v1 | |
with: | |
components: clippy, rustfmt | |
override: true | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Clippy | |
run: cargo clippy --all --all-targets | |
- name: Format | |
run: cargo fmt --all -- --check | |
- name: Check for Forbidden Words | |
run: | | |
sudo apt-get install ripgrep | |
./bin/forbid | |
test: | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust Toolchain Components | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Test | |
run: cargo test --all |