setup CI runs on pedersen hash example

This commit is contained in:
Damir Shamanaev 2021-01-29 23:26:13 +03:00
parent ea742a5a4e
commit 576823df49
2 changed files with 47 additions and 3 deletions

View File

@ -42,9 +42,6 @@ jobs:
cd .. && leo new my-app && cd my-app cd .. && leo new my-app && cd my-app
leo login -u "$USER" -p "$PASS" leo login -u "$USER" -p "$PASS"
leo add argus4130/xnor leo add argus4130/xnor
leo setup
leo setup
leo setup --skip-key-check
leo remove xnor leo remove xnor
leo clean leo clean

47
.github/workflows/leo-setup.yml vendored Normal file
View File

@ -0,0 +1,47 @@
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