From 22376139f20649fa5a61b6c65bacebea35401f05 Mon Sep 17 00:00:00 2001 From: utox39 Date: Fri, 3 Oct 2025 14:43:25 +0200 Subject: [PATCH 1/4] build: use the correct artifact path --- .github/workflows/build.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e3ae26..3b2326d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,9 +73,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: zigfetch-${{ matrix.target }} - path: | - # zig-out/bin/zigfetch-${{ matrix.target }} - zigfetch-${{ matrix.target }}.tar.gz + path: zigfetch-${{ matrix.target }}.tar.gz retention-days: 3 test: From b09443db4d7efce6ef5d625dba613783ea652504 Mon Sep 17 00:00:00 2001 From: utox39 Date: Fri, 3 Oct 2025 15:00:30 +0200 Subject: [PATCH 2/4] build: remove archive-creation --- .github/workflows/build.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3b2326d..1deb3cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,15 +65,11 @@ jobs: ls -la zig-out/bin/ file zig-out/bin/zigfetch-${{ matrix.target }} - - name: Create archive - run: | - tar -czf zigfetch-${{ matrix.target }}.tar.gz -C zig-out/bin zigfetch-${{ matrix.target }} - - name: Upload artifacts uses: actions/upload-artifact@v4 with: name: zigfetch-${{ matrix.target }} - path: zigfetch-${{ matrix.target }}.tar.gz + path: zig-out/bin/zigfetch-${{ matrix.target }} retention-days: 3 test: From 16bb74c47be24624c04f27b730dd4105efc0596f Mon Sep 17 00:00:00 2001 From: utox39 Date: Sat, 4 Oct 2025 17:55:50 +0200 Subject: [PATCH 3/4] fix(config): fix a memory leak when the InvalidModule error occurs --- src/config.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.zig b/src/config.zig index 2524335..1c40bf2 100644 --- a/src/config.zig +++ b/src/config.zig @@ -51,6 +51,7 @@ pub fn getModulesTypes(allocator: std.mem.Allocator, config: ?std.json.Parsed(Co if (module_enum) |m| { try modules_list.append(m); } else { + modules_list.deinit(); return error.InvalidModule; } } From dd2f50c79c9175822b77d51a5f7ed4b8f3826af3 Mon Sep 17 00:00:00 2001 From: utox39 Date: Sat, 4 Oct 2025 17:57:29 +0200 Subject: [PATCH 4/4] build: bump version to 0.22.1 --- build.zig.zon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig.zon b/build.zig.zon index fa15cab..00436d2 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -10,7 +10,7 @@ // This is a [Semantic Version](https://semver.org/). // In a future version of Zig it will be used for package deduplication. - .version = "0.22.0", + .version = "0.22.1", // Together with name, this represents a globally unique package // identifier. This field is generated by the Zig toolchain when the