diff --git a/.gitattributes b/.gitattributes index cc1418390a7cf29ac947cd58ea803634eb9a8388..8e8d2ceba4b327ce9db93f988492d0e21a461012 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,5 +2,3 @@ *.zig text eol=lf zig.mod text eol=lf zigmod.* text eol=lf -zig.mod linguist-language=YAML -zig.mod gitlab-language=yaml diff --git a/.gitignore b/.gitignore index 71969716e3e9ca87fdafa1839c25c6daf7da7560..bb2a57bd81d13975f2a74ae5dd0e652de07bb8a7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ zig-* .zigmod -deps.zig diff --git a/build.zig b/build.zig deleted file mode 100644 index 1dfea493827f36bc25f0a7df51a4f05dae711eea..0000000000000000000000000000000000000000 --- a/build.zig +++ /dev/null @@ -1,37 +0,0 @@ -const std = @import("std"); -const deps = @import("./deps.zig"); - -pub fn build(b: *std.build.Builder) void { - // Standard target options allows the person running `zig build` to choose - // what target to build for. Here we do not override the defaults, which - // means any target is allowed, and the default is native. Other options - // for restricting supported target set are available. - const target = b.standardTargetOptions(.{}); - - // Standard release options allow the person running `zig build` to select - // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. - const mode = b.standardReleaseOptions(); - - const exe = b.addExecutable("zig-git", "main.zig"); - exe.setTarget(target); - exe.setBuildMode(mode); - deps.addAllTo(exe); - exe.install(); - - const run_cmd = exe.run(); - run_cmd.step.dependOn(b.getInstallStep()); - if (b.args) |args| { - run_cmd.addArgs(args); - } - - const run_step = b.step("run", "Run the app"); - run_step.dependOn(&run_cmd.step); - - const exe_tests = b.addTest("main.zig"); - exe_tests.setTarget(target); - exe_tests.setBuildMode(mode); - deps.addAllTo(exe_tests); - - const test_step = b.step("test", "Run unit tests"); - test_step.dependOn(&exe_tests.step); -} diff --git a/main.zig b/main.zig deleted file mode 100644 index a7a7c9546a974e2d6130a20559150a0ff8d1af14..0000000000000000000000000000000000000000 --- a/main.zig +++ /dev/null @@ -1,9 +0,0 @@ -const std = @import("std"); - -pub fn main() anyerror!void { - std.log.info("All your codebase are belong to us.", .{}); -} - -test "basic test" { - try std.testing.expectEqual(10, 3 + 7); -}