Skip to content

v0.1.1 delano-wallet-core #168

v0.1.1 delano-wallet-core

v0.1.1 delano-wallet-core #168

Workflow file for this run

name: Build Rust
on:
push:
branches: ["master"]
# pull_request:
# branches: ["master"]
workflow_dispatch:
inputs:
continue:
type: boolean
description: Do you wish to continue?
default: true
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Exit if not on master branch
if: endsWith(github.ref, 'master') == false
run: exit -1
- name: Set up Rust
uses: dtolnay/rust-toolchain@nightly
with:
targets: wasm32-unknown-unknown, wasm32-wasi
toolchain: nightly-x86_64-unknown-linux-gnu
components: rust-src, rustfmt
- name: Install binstall
uses: taiki-e/install-action@cargo-binstall
- name: Install cargo-component v0.7.0
run: echo yes | cargo binstall cargo-component@0.10.1
- name: Cargo component build Workspace
run: cargo component build --workspace
- name: Run workspace tests
run: cargo test --workspace --verbose