mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-24 02:42:21 +03:00
Adds leo init CI as well
This commit is contained in:
parent
22da3aa556
commit
cccb62e5a4
39
.github/workflows/leo.yml
vendored
39
.github/workflows/leo.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user