mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-27 20:24:52 +03:00
48 lines
978 B
YAML
48 lines
978 B
YAML
|
name: leo-setup
|
||
|
on:
|
||
|
pull_request:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
paths-ignore:
|
||
|
- 'docs/**'
|
||
|
- 'documentation/**'
|
||
|
env:
|
||
|
RUST_BACKTRACE: 1
|
||
|
|
||
|
jobs:
|
||
|
add:
|
||
|
name: Add Package ('leo add')
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v1
|
||
|
|
||
|
- name: Install Rust
|
||
|
uses: actions-rs/toolchain@v1
|
||
|
with:
|
||
|
profile: minimal
|
||
|
toolchain: nightly
|
||
|
override: true
|
||
|
components: rustfmt
|
||
|
|
||
|
- name: Install Leo
|
||
|
uses: actions-rs/cargo@v1
|
||
|
env:
|
||
|
CARGO_NET_GIT_FETCH_WITH_CLI: true
|
||
|
with:
|
||
|
command: install
|
||
|
args: --path .
|
||
|
|
||
|
- name: 'leo setup for examples'
|
||
|
env:
|
||
|
USER: ${{ secrets.ALEO_PM_USERNAME }}
|
||
|
PASS: ${{ secrets.ALEO_PM_PASSWORD }}
|
||
|
run: |
|
||
|
cd examples/pedersen-hash
|
||
|
leo setup
|
||
|
leo setup
|
||
|
leo setup --skip-key-check
|
||
|
leo clean
|
||
|
|