From df8af230cb705dcf59f0c9460a61d391004c585e Mon Sep 17 00:00:00 2001 From: Don Isaac Date: Thu, 13 Mar 2025 00:18:03 -0700 Subject: [PATCH] ci: run zlint on PRs --- .github/workflows/nightly.yml | 6 ++++++ build.zig | 1 - src/cmd/aq.zig | 1 - src/cmd/zpm.zig | 1 - src/cmd/zpm/search.zig | 2 -- src/cmd/zpm/tags.zig | 2 -- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 9c2a657..1879139 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -47,3 +47,9 @@ jobs: - run: ./test_repo.sh https://github.com/nektro/zigmod-test-systemlib-dep - run: ./test_repo.sh https://github.com/nektro/zigmod-test-local-dep - run: ./test_repo.sh https://github.com/nektro/zigmod-test-c-code + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: DonIsaac/zlint-action@v0 diff --git a/build.zig b/build.zig index 43b9a1d..dc52b8e 100644 --- a/build.zig +++ b/build.zig @@ -1,6 +1,5 @@ const std = @import("std"); const string = []const u8; -const builtin = @import("builtin"); const deps = @import("./deps.zig"); pub fn build(b: *std.Build) void { diff --git a/src/cmd/aq.zig b/src/cmd/aq.zig index d77326e..87a9a9d 100644 --- a/src/cmd/aq.zig +++ b/src/cmd/aq.zig @@ -2,7 +2,6 @@ const std = @import("std"); const string = []const u8; const gpa = std.heap.c_allocator; const zfetch = @import("zfetch"); -const extras = @import("extras"); const json = @import("json"); const u = @import("./../util/index.zig"); diff --git a/src/cmd/zpm.zig b/src/cmd/zpm.zig index bdbabf9..b455cfa 100644 --- a/src/cmd/zpm.zig +++ b/src/cmd/zpm.zig @@ -2,7 +2,6 @@ const std = @import("std"); const string = []const u8; const gpa = std.heap.c_allocator; const zfetch = @import("zfetch"); -const extras = @import("extras"); const json = @import("json"); const u = @import("./../util/index.zig"); diff --git a/src/cmd/zpm/search.zig b/src/cmd/zpm/search.zig index af72686..0e4d7d8 100644 --- a/src/cmd/zpm/search.zig +++ b/src/cmd/zpm/search.zig @@ -1,7 +1,5 @@ const std = @import("std"); const gpa = std.heap.c_allocator; -const extras = @import("extras"); - const zpm = @import("./../zpm.zig"); // diff --git a/src/cmd/zpm/tags.zig b/src/cmd/zpm/tags.zig index a798a15..509c000 100644 --- a/src/cmd/zpm/tags.zig +++ b/src/cmd/zpm/tags.zig @@ -1,7 +1,5 @@ const std = @import("std"); const gpa = std.heap.c_allocator; -const extras = @import("extras"); - const zpm = @import("./../zpm.zig"); //