mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
clear roc cache on zig build roc too
This commit is contained in:
parent
68c259d3af
commit
34e8dad7d4
1 changed files with 5 additions and 0 deletions
|
|
@ -831,6 +831,11 @@ pub fn build(b: *std.Build) void {
|
|||
roc_modules.addAll(roc_exe);
|
||||
install_and_run(b, no_bin, roc_exe, roc_step, run_step, run_args);
|
||||
|
||||
// Clear the Roc cache when building the compiler to ensure stale cached artifacts aren't used
|
||||
const clear_cache_step = createClearCacheStep(b);
|
||||
roc_step.dependOn(clear_cache_step);
|
||||
b.getInstallStep().dependOn(clear_cache_step);
|
||||
|
||||
// CLI integration tests - run actual roc programs like CI does
|
||||
if (!no_bin) {
|
||||
const install = b.addInstallArtifact(roc_exe, .{});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue