Skip to content

Commit

Permalink
fix cargo cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 11, 2023
1 parent fe0d051 commit 6789c83
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions example/.fluentci/src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ export const build = async (client: Client, src = ".") => {
.withExec(["mv", "spin", "/usr/local/bin/spin"])
.withExec(["rustup", "target", "add", "wasm32-wasi"])
.withMountedCache(
"/root/.cargo/registry",
"/usr/local/cargo/registry",
client.cacheVolume("cargo-cache")
)
.withMountedCache("/root/.cargo/git", client.cacheVolume("cargo-git-cache"))
.withMountedCache(
"/usr/local/cargo/git",
client.cacheVolume("cargo-git-cache")
)
.withMountedCache("/app/target", client.cacheVolume("spin-target-cache"))
.withDirectory("/app", context, {
exclude: ["target", ".git", ".fluentci"],
Expand Down

0 comments on commit 6789c83

Please sign in to comment.