Adds leo init CI as well

This commit is contained in:
howardwu 2020-08-03 21:03:47 -07:00
parent 22da3aa556
commit cccb62e5a4

View File

@ -9,7 +9,7 @@ env:
jobs:
new:
name: Hello Leo
name: Hello Leo (from 'leo new')
runs-on: ubuntu-latest
steps:
- name: Checkout
@ -45,3 +45,40 @@ jobs:
leo new hello_world
cd hello_world
leo run
init:
name: Hello Leo (from '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
leo run