mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-29 21:22:55 +03:00
87 lines
1.9 KiB
YAML
87 lines
1.9 KiB
YAML
name: Leo Release Tests
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
env:
|
|
RUST_BACKTRACE: 1
|
|
|
|
jobs:
|
|
new:
|
|
name: Hello Leo ('leo new hello-world')
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Load snarkOS
|
|
run: |
|
|
mkdir ~/.ssh
|
|
echo "${{ secrets.SNARKOS_DEPLOY_KEY }}" > ~/.ssh/id_rsa
|
|
chmod 600 ~/.ssh/id_rsa
|
|
eval $(ssh-agent -s)
|
|
ssh-add -k ~/.ssh/id_rsa
|
|
|
|
- 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 new hello-world'
|
|
run: |
|
|
cd ..
|
|
leo new hello-world
|
|
ls -la
|
|
cd hello-world && ls -la
|
|
leo run
|
|
|
|
init:
|
|
name: Hello Leo ('leo init')
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Load snarkOS
|
|
run: |
|
|
mkdir ~/.ssh
|
|
echo "${{ secrets.SNARKOS_DEPLOY_KEY }}" > ~/.ssh/id_rsa
|
|
chmod 600 ~/.ssh/id_rsa
|
|
eval $(ssh-agent -s)
|
|
ssh-add -k ~/.ssh/id_rsa
|
|
|
|
- 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 init'
|
|
run: |
|
|
cd .. && mkdir hello-world && cd hello-world
|
|
leo init
|
|
ls -la
|
|
leo run
|