forked from lobo/lambda-zig
upgrade to zig 0.13.0
This commit is contained in:
parent
9d11086972
commit
ef5b793882
2
.github/workflows/zig-build.yaml
vendored
2
.github/workflows/zig-build.yaml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- uses: elerch/setup-zig@v3
|
||||
with:
|
||||
version: 0.12.0
|
||||
version: 0.13.0
|
||||
- uses: elerch/zig-action-cache@v1.1.6
|
||||
- name: Build project
|
||||
run: zig build --summary all
|
||||
|
|
|
@ -19,7 +19,7 @@ pub fn build(b: *std.Build) !void {
|
|||
.name = "lambda-zig",
|
||||
// In this case the main source file is merely a path, however, in more
|
||||
// complicated build scripts, this could be a generated file.
|
||||
.root_source_file = .{ .path = "src/lambda.zig" },
|
||||
.root_source_file = b.path("src/lambda.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
@ -38,7 +38,7 @@ pub fn build(b: *std.Build) !void {
|
|||
// Creates a step for unit testing. This only builds the test executable
|
||||
// but does not run it.
|
||||
const main_tests = b.addTest(.{
|
||||
.root_source_file = .{ .path = "src/lambda.zig" },
|
||||
.root_source_file = b.path("src/lambda.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
@ -53,7 +53,7 @@ pub fn build(b: *std.Build) !void {
|
|||
|
||||
const exe = b.addExecutable(.{
|
||||
.name = "custom",
|
||||
.root_source_file = .{ .path = "src/sample-main.zig" },
|
||||
.root_source_file = b.path("src/sample-main.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user