Skip to content

Commit 116d3e5

Browse files
committed
fix cmake setup
ci: update ci.yml ci: update ci.yml
1 parent a58c147 commit 116d3e5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ jobs:
2727
- name: Show cmake version
2828
run: |
2929
devbox run cmake --version
30+
working-directory: example/build

src/helpers.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ use anyhow::Error;
22
use fluentci_pdk::dag;
33

44
pub fn setup_cmake(version: &str) -> Result<String, Error> {
5+
dag()
6+
.pkgx()?
7+
.with_exec(vec!["mkdir", "-p", "build"])?
8+
.stdout()?;
9+
510
let stdout = dag()
611
.devbox()?
7-
.with_exec(vec!["mkdir", "-p", "build"])?
8-
.with_exec(vec!["cp", "devbox.*", "build/"])?
912
.with_workdir("build")?
1013
.with_exec(vec!["devbox", "add", &format!("cmake@{}", version)])?
1114
.with_exec(vec!["devbox", "install"])?

0 commit comments

Comments
 (0)