Skip to content

Commit

Permalink
fix build function
Browse files Browse the repository at this point in the history
fix build function
  • Loading branch information
tsirysndr committed Nov 22, 2023
1 parent d714f52 commit 436de18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions example/.fluentci/src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,13 @@ export const build = async (
...options,
]
: ["cargo", "build", "--release", "--target", target, ...options]
);
)
.withExec(["cp", "-r", `/app/target/${target}`, "/"]);

const result = await ctr.stdout();

console.log(result);
id = await ctr.directory("/app/target").id();
id = await ctr.directory(`/${target}`).id();
});
return id;
};
Expand Down
5 changes: 3 additions & 2 deletions src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,13 @@ export const build = async (
...options,
]
: ["cargo", "build", "--release", "--target", target, ...options]
);
)
.withExec(["cp", "-r", `/app/target/${target}`, "/"]);

const result = await ctr.stdout();

console.log(result);
id = await ctr.directory("/app/target").id();
id = await ctr.directory(`/${target}`).id();
});
return id;
};
Expand Down

0 comments on commit 436de18

Please sign in to comment.