Skip to content

Commit

Permalink
fix cmake setup
Browse files Browse the repository at this point in the history
ci: update ci.yml

ci: update ci.yml
  • Loading branch information
tsirysndr committed Aug 21, 2024
1 parent a58c147 commit 116d3e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ jobs:
- name: Show cmake version
run: |
devbox run cmake --version
working-directory: example/build
7 changes: 5 additions & 2 deletions src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ use anyhow::Error;
use fluentci_pdk::dag;

pub fn setup_cmake(version: &str) -> Result<String, Error> {
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"])?
Expand Down

0 comments on commit 116d3e5

Please sign in to comment.