-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: move to Run Step-based architecture
this change should hopefully be more future-proof: in light of ziglang/zig#14498, collecting the EmbedFile.zig logic as a Run Step is likely to be the preferred (indeed, only) way to extend the Build system in the future. also, by breaking out the work originally in `make` into a collection of other steps, EmbedFile.zig should hopefully correctly work with the Zig build syste's caching system. (Previously, I found that updating file contents were not reflected in the `@embedFile` calls.) adds `writeSources`, which creates and returns a named `WriteFile` step which collects everything the `EmbedFile` step touches and outputs it into one directory. also, one can now use the `embed-file` executable standalone if desired. BREAKING CHANGE: the signatures of `addFile` and `addDirectory` have changed. taking `sub_path` as an argument was incorrect. BREAKING CHANGE: `createModule` is removed; instead use `embed_file.module` directly.
- Loading branch information
1 parent
b148d61
commit 3aff56e
Showing
8 changed files
with
486 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.{ | ||
.name = "embed-file", | ||
.version = "0.1.0", | ||
.paths = .{ "build.zig.zon", "build.zig", "LICENSE", "README.org", "src" }, | ||
.version = "1.0.0", | ||
.paths = .{ "build.zig.zon", "build.zig", "LICENSE", "README.org", "src/main.zig", "tests" }, | ||
.dependencies = .{}, | ||
} |
Oops, something went wrong.