From fd7b75fa6d51802f43a37be59955bad8df23ccb5 Mon Sep 17 00:00:00 2001 From: Jae B Date: Sun, 22 Sep 2024 20:26:51 +1000 Subject: [PATCH] Add Mac support (#7) --- .github/workflows/ci.yml | 2 ++ src/androidbuild/tools.zig | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3aad5b7..092c061 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,8 @@ jobs: include: - os: "ubuntu-22.04" - os: "windows-latest" + - os: "macos-12" # x86_64 + - os: "macos-14" # arm64 as per table: https://github.com/actions/runner-images/blob/8a1eeaf6ac70c66f675a04078d1a7222edd42008/README.md#available-images runs-on: ${{matrix.os}} diff --git a/src/androidbuild/tools.zig b/src/androidbuild/tools.zig index 9dba401..745eb21 100644 --- a/src/androidbuild/tools.zig +++ b/src/androidbuild/tools.zig @@ -158,7 +158,7 @@ pub const Tools = struct { const host_os_and_arch: [:0]const u8 = switch (host_os_tag) { .windows => "windows-x86_64", .linux => "linux-x86_64", - // TODO(jae): 2024-09-15: Add MacOS support + .macos => "darwin-x86_64", else => @panic(b.fmt("unhandled operating system: {}", .{host_os_tag})), };