From 116d3e541119baf5a31312f08b511fd55720f159 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Wed, 21 Aug 2024 17:14:43 +0000 Subject: [PATCH] fix cmake setup ci: update ci.yml ci: update ci.yml --- .github/workflows/ci.yml | 1 + src/helpers.rs | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2a2dd8..4950f66 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,3 +27,4 @@ jobs: - name: Show cmake version run: | devbox run cmake --version + working-directory: example/build diff --git a/src/helpers.rs b/src/helpers.rs index e8f471e..35f90af 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -2,10 +2,13 @@ use anyhow::Error; use fluentci_pdk::dag; pub fn setup_cmake(version: &str) -> Result { + dag() + .pkgx()? + .with_exec(vec!["mkdir", "-p", "build"])? + .stdout()?; + let stdout = dag() .devbox()? - .with_exec(vec!["mkdir", "-p", "build"])? - .with_exec(vec!["cp", "devbox.*", "build/"])? .with_workdir("build")? .with_exec(vec!["devbox", "add", &format!("cmake@{}", version)])? .with_exec(vec!["devbox", "install"])?