From 7e03f3605d30c6d07fb62d2136fe7848e51cbd12 Mon Sep 17 00:00:00 2001 From: Antoine GAGNIERE Date: Fri, 27 Mar 2026 18:19:53 +0100 Subject: [PATCH] Windows bool is now an enum --- .github/workflows/docs.yml | 2 +- .github/workflows/test.yml | 10 +++++----- src/timezone.zig | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a28dfb8..102d9a3 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -27,7 +27,7 @@ jobs: uses: actions/configure-pages@v2 - uses: mlugg/setup-zig@v2 with: - version: 0.15.1 + version: 0.15.2 - run: zig build docs - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 51b9902..1aa297f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: test on: pull_request: - branches: ["main"] + branches: ["main", "0.16"] workflow_dispatch: jobs: @@ -15,13 +15,13 @@ jobs: - uses: actions/checkout@v3 - uses: mlugg/setup-zig@v2 with: - version: 0.15.1 - - run: zig build test + version: master + - run: zig build test --summary new check-fmt: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: mlugg/setup-zig@v1 + - uses: mlugg/setup-zig@v2 with: - version: 0.13.0 + version: master - run: zig fmt --check . diff --git a/src/timezone.zig b/src/timezone.zig index 1c3ba15..a68f18e 100644 --- a/src/timezone.zig +++ b/src/timezone.zig @@ -810,13 +810,13 @@ pub const Windows = struct { }; var localtime: windows.SYSTEMTIME = undefined; - if (windows.SystemTimeToTzSpecificLocalTimeEx(&self.zoneinfo, &systemtime, &localtime) == 0) { + if (windows.SystemTimeToTzSpecificLocalTimeEx(&self.zoneinfo, &systemtime, &localtime) == .FALSE) { const err = std.os.windows.GetLastError(); std.log.err("{}", .{err}); @panic("TODO"); } var tzi: windows.TIME_ZONE_INFORMATION = undefined; - if (windows.GetTimeZoneInformationForYear(localtime.wYear, &self.zoneinfo, &tzi) == 0) { + if (windows.GetTimeZoneInformationForYear(localtime.wYear, &self.zoneinfo, &tzi) == .FALSE) { const err = std.os.windows.GetLastError(); std.log.err("{}", .{err}); @panic("TODO");