Skip to content

Commit

Permalink
remove the autodoc build step, might be responsible for the random GH…
Browse files Browse the repository at this point in the history
… action errors
  • Loading branch information
floooh committed Sep 1, 2024
1 parent ead343a commit fdd72d5
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,4 @@ pub fn build(b: *Build) void {
.optimize = optimize,
.mod_chipz = mod_chipz,
});
buildDocs(b, target);
}

fn buildDocs(b: *Build, target: Build.ResolvedTarget) void {
const obj_autodocs = b.addObject(.{
.name = "chipz",
.root_source_file = b.path("src/chipz.zig"),
.target = target,
.optimize = .Debug,
});
const install_autodocs = b.addInstallDirectory(.{
.source_dir = obj_autodocs.getEmittedDocs(),
.install_dir = .prefix,
.install_subdir = "docs",
});
b.getInstallStep().dependOn(&install_autodocs.step);
}

0 comments on commit fdd72d5

Please sign in to comment.