Skip to content

Commit

Permalink
Upgrade to zig 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mhersson committed May 28, 2024
1 parent c688922 commit 0165244
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-zig-11.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Works with Zig 0.11.0
name: Works with Zig 0.12.0
on:
push:
branches:
Expand All @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
version: 0.12.0
- name: Check zig version
run: zig version
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
version: 0.12.0
- name: Check zig version
run: zig version
- name: Build
Expand Down
4 changes: 2 additions & 2 deletions src/main.zig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const std = @import("std");
const os = @import("std").os;
const posix = @import("std").posix;
const http = @import("std").http;
const mem = @import("std").mem;
const cURL = @cImport({
Expand Down Expand Up @@ -44,7 +44,7 @@ pub fn main() !void {
const latitude = args[1];
const longitude = args[2];

const api_key = os.getenv("OPEN_WEATHER_MAP_API_KEY") orelse {
const api_key = posix.getenv("OPEN_WEATHER_MAP_API_KEY") orelse {
try stdout.print("{{\"text\":\"missing key\"}}\n", .{});
return;
};
Expand Down

0 comments on commit 0165244

Please sign in to comment.