leo/.github/workflows/leo-new.yml

50 lines
1008 B
YAML
Raw Normal View History

2021-01-17 21:33:52 +03:00
name: leo-new
on:
pull_request:
push:
branches:
- master
paths-ignore:
- 'docs/**'
- 'documentation/**'
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: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
2021-01-18 00:57:48 +03:00
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2021-01-17 21:33:52 +03:00
- name: Install Leo
uses: actions-rs/cargo@v1
with:
command: install
2021-01-18 00:33:54 +03:00
args: --path .
2021-01-17 21:33:52 +03:00
- name: 'leo new hello-world'
run: |
cd ..
leo new hello-world
ls -la
cd hello-world && ls -la
leo run