mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-10-07 11:37:56 +03:00
attmpt to fix gh actions ci again
This commit is contained in:
parent
f520201017
commit
2e9be1a2ba
@ -53,7 +53,7 @@ jobs:
|
||||
- run:
|
||||
name: Run tests
|
||||
no_output_timeout: 30m
|
||||
command: cargo build && cargo test --all
|
||||
command: LEO=/home/circleci/project/project/bin/leo cargo test --all
|
||||
- persist_to_workspace:
|
||||
root: ~/
|
||||
paths: project/
|
||||
@ -71,7 +71,7 @@ jobs:
|
||||
- run:
|
||||
name: Run tests
|
||||
no_output_timeout: 30m
|
||||
command: cargo build && cargo test --all
|
||||
command: LEO=/home/circleci/project/project/bin/leo cargo test --all
|
||||
- clear_environment:
|
||||
cache_key: leo-nightly-cache
|
||||
|
||||
@ -214,9 +214,13 @@ workflows:
|
||||
version: 2
|
||||
main-workflow:
|
||||
jobs:
|
||||
- rust-stable
|
||||
- rust-nightly
|
||||
- leo-executable
|
||||
- rust-stable
|
||||
requires:
|
||||
- leo-executable
|
||||
- rust-nightly
|
||||
requires:
|
||||
- leo-executable
|
||||
- leo-new:
|
||||
requires:
|
||||
- leo-executable
|
||||
|
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -114,10 +114,11 @@ jobs:
|
||||
override: true
|
||||
components: rustfmt
|
||||
|
||||
- name: Build Leo binary
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
- name: Install Leo binary and set env
|
||||
run: |
|
||||
cargo install --path .
|
||||
export LEO=$(which leo)
|
||||
printenv
|
||||
|
||||
- name: Test
|
||||
uses: actions-rs/cargo@v1
|
||||
|
@ -21,7 +21,7 @@ use test_dir::{DirBuilder, FileType, TestDir};
|
||||
/// Create Command from given arguments and CWD.
|
||||
fn command(args: &str, cwd: Option<PathBuf>) -> Command {
|
||||
let args = args.split(' ').collect::<Vec<&str>>();
|
||||
let mut cmd = Command::cargo_bin("leo").unwrap();
|
||||
let mut cmd = Command::cargo_bin("leo").unwrap_or_else(|_| Command::new(std::env::var("LEO").unwrap()));
|
||||
|
||||
if let Some(cwd) = cwd {
|
||||
cmd.current_dir(cwd);
|
||||
|
Loading…
Reference in New Issue
Block a user