diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 551cf08..c205b8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,16 +13,15 @@ jobs: fail-fast: false steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 + with: + submodules: true - name: Setup Zig - uses: goto-bus-stop/setup-zig@v2.1.1 + uses: goto-bus-stop/setup-zig@v2 with: version: master - - name: Update submodules - run: git submodule update --init - - name: Install dependencies run: sudo apt update && sudo apt install -yq xorriso qemu-system-x86 @@ -43,12 +42,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Zig - uses: goto-bus-stop/setup-zig@v2.1.1 + uses: goto-bus-stop/setup-zig@v2 with: version: master - name: Lint - run: zig fmt --check kernel/*.zig + run: zig fmt --check kernel/*.zig lib/*.zig diff --git a/build.zig b/build.zig index 37a65fb..48d29fd 100644 --- a/build.zig +++ b/build.zig @@ -103,7 +103,7 @@ pub fn build(b: *std.Build) void { run_step.dependOn(&run_cmd.step); const fmt_step = b.step("fmt", "Format all source files"); - fmt_step.dependOn(&b.addFmt(.{ .paths = &[_][]const u8{"kernel"} }).step); + fmt_step.dependOn(&b.addFmt(.{ .paths = &[_][]const u8{ "kernel", "lib" } }).step); const clean_step = b.step("clean", "Delete all artifacts created by zig build"); clean_step.dependOn(&b.addRemoveDirTree("zig-cache").step); diff --git a/lib/term.zig b/lib/term.zig index df9ce9d..41cc517 100644 --- a/lib/term.zig +++ b/lib/term.zig @@ -74,7 +74,6 @@ pub const ColorRGB = struct { } }; - pub inline fn resetColor(writer: anytype) !void { try writer.writeAll(csi ++ "m"); }