add macos to CI
This commit is contained in:
parent
b53cbc3ea5
commit
0371e5a5e0
|
@ -24,6 +24,8 @@ steps:
|
||||||
- zig build -Dtarget=x86_64-windows
|
- zig build -Dtarget=x86_64-windows
|
||||||
- zig build -Dtarget=aarch64-linux
|
- zig build -Dtarget=aarch64-linux
|
||||||
- zig build -Dtarget=riscv64-linux
|
- zig build -Dtarget=riscv64-linux
|
||||||
|
- zig build -Dtarget=x86_64-macos
|
||||||
|
- zig build -Dtarget=aarch64-macos
|
||||||
- name: notify
|
- name: notify
|
||||||
image: plugins/matrix
|
image: plugins/matrix
|
||||||
when:
|
when:
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -9,3 +9,4 @@ src/models/
|
||||||
smithy/zig-out/
|
smithy/zig-out/
|
||||||
libs/
|
libs/
|
||||||
src/git_version.zig
|
src/git_version.zig
|
||||||
|
zig-out
|
||||||
|
|
|
@ -20,7 +20,10 @@ This is for x86_linux. Tested targets:
|
||||||
* aarch64-linux
|
* aarch64-linux
|
||||||
* x86_64-windows
|
* x86_64-windows
|
||||||
* arm-linux
|
* arm-linux
|
||||||
|
* aarch64-macos
|
||||||
|
* x86_64-macos
|
||||||
|
|
||||||
|
Tested targets are built, but not continuously tested, by CI.
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ pub fn build(b: *Builder) !void {
|
||||||
exe.setTarget(target);
|
exe.setTarget(target);
|
||||||
exe.setBuildMode(mode);
|
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
|
// 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
|
// linux we can run strip on the result, probably at the expense
|
||||||
|
|
Loading…
Reference in New Issue
Block a user