No description
- Zig 100%
| images | Support devtmpfs | |
| src |
Do not use Child.run(...), We want active stdio. + mounted /dev
|
|
| .gitignore | Initial commit | |
| build.zig | Update to zig 0.15.2 | |
| build.zig.zon | Mount self, foreign and stdlib source directories via 9p protocol | |
| cpio.zig | Update to zig 0.15.2 | |
| LICENSE | Initial commit | |
| README.md | Add README.md | |
Like addRunArtifact but use qemu-system-* instead of qemu-* or qemu-user,
the result of that better support most syscalls unlike qemu-user
Note: not all syscalls are supported. You can request one by editing images/.config.arch
and compile it(:, or I might create CI action to do it idk. Feel free to add one(:
Example usage:
if(cli.rootModuleTarget().cpu.arch==b.graph.host.result.cpu.archandcli.rootModuleTarget().os.tag==b.graph.host.result.os.tag){construn_cmd=b.addRunArtifact(cli);run_cmd.step.dependOn(b.getInstallStep());if(b.args)|args|{run_cmd.addArgs(args);}construn_step=b.step("run","Run the app");run_step.dependOn(&run_cmd.step);}else{varargv=std.ArrayList([]constu8).init(b.allocator);argv.append("./zig-out/bin/theNameOfCli")catchunreachable;if(b.args)|args|{argv.appendSlice(args)catchunreachable;}construn_cmd=@import("zig_run_system").addRunSystem(b,target,argv.items);run_cmd.step.dependOn(b.getInstallStep());construn_step=b.step("run","Run the app");run_step.dependOn(&run_cmd.step);}