chore: update to Zig v2024.1.0-mach
This commit is contained in:
parent
b0389bb1a4
commit
7a95a1fac0
|
@ -16,7 +16,7 @@ jobs:
|
|||
steps:
|
||||
- uses: goto-bus-stop/setup-zig@v2
|
||||
with:
|
||||
version: master
|
||||
version: 0.12.0-dev.2063+804cee3b9
|
||||
- uses: actions/checkout@v3
|
||||
- run: zig fmt src/*.zig
|
||||
test:
|
||||
|
@ -27,7 +27,7 @@ jobs:
|
|||
steps:
|
||||
- uses: goto-bus-stop/setup-zig@v2
|
||||
with:
|
||||
version: master
|
||||
version: 0.12.0-dev.2063+804cee3b9
|
||||
- uses: actions/checkout@v3
|
||||
- run: zig build test
|
||||
bench:
|
||||
|
@ -35,6 +35,6 @@ jobs:
|
|||
steps:
|
||||
- uses: goto-bus-stop/setup-zig@v2
|
||||
with:
|
||||
version: master
|
||||
version: 0.12.0-dev.2063+804cee3b9
|
||||
- uses: actions/checkout@v3
|
||||
- run: zig build -Doptimize=ReleaseFast -Dcpu=baseline bench
|
||||
|
|
|
@ -15,7 +15,7 @@ pub fn build(b: *std.Build) void {
|
|||
// set a preferred release mode, allowing the user to decide how to optimize.
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
const hamt_module = b.addModule("hamt", .{ .source_file = .{ .path = "src/lib.zig" } });
|
||||
const mod = b.addModule("hamt", .{ .root_source_file = .{ .path = "src/lib.zig" } });
|
||||
|
||||
const lib = b.addStaticLibrary(.{
|
||||
.name = "hamt",
|
||||
|
@ -36,9 +36,9 @@ pub fn build(b: *std.Build) void {
|
|||
.name = "hamt-benchmark",
|
||||
.root_source_file = .{ .path = "src/bench.zig" },
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
.optimize = .ReleaseFast,
|
||||
});
|
||||
bench.addModule("hamt", hamt_module);
|
||||
bench.root_module.addImport("hamt", mod);
|
||||
|
||||
const bench_cmd = b.addRunArtifact(bench);
|
||||
const bench_step = b.step("bench", "Run benchmark");
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
.{
|
||||
.name = "hamt",
|
||||
.version = "0.1.0",
|
||||
.paths = .{
|
||||
"build.zig",
|
||||
"build.zig.zon",
|
||||
"README.md",
|
||||
"src",
|
||||
},
|
||||
.dependencies = .{},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue