add macos to CI

This commit is contained in:
Emil Lerch 2022-02-08 22:36:36 -08:00
parent b53cbc3ea5
commit 0371e5a5e0
Signed by: lobo
GPG Key ID: A7B62D657EF764F8
4 changed files with 7 additions and 1 deletions

View File

@ -24,6 +24,8 @@ steps:
- zig build -Dtarget=x86_64-windows
- zig build -Dtarget=aarch64-linux
- zig build -Dtarget=riscv64-linux
- zig build -Dtarget=x86_64-macos
- zig build -Dtarget=aarch64-macos
- name: notify
image: plugins/matrix
when:

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ src/models/
smithy/zig-out/
libs/
src/git_version.zig
zig-out

View File

@ -20,7 +20,10 @@ This is for x86_linux. Tested targets:
* aarch64-linux
* x86_64-windows
* arm-linux
* aarch64-macos
* x86_64-macos
Tested targets are built, but not continuously tested, by CI.
## Building

View File

@ -30,7 +30,7 @@ pub fn build(b: *Builder) !void {
exe.setTarget(target);
exe.setBuildMode(mode);
exe.linkage = .static;
if (target.getOs().tag != .macos) exe.linkage = .static;
// TODO: Strip doesn't actually fully strip the executable. If we're on
// linux we can run strip on the result, probably at the expense