diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2a2dd8..e60e895 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: 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"])?