mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 03:06:26 +02:00
add zig
This commit is contained in:
parent
e5a91bb71c
commit
c452d37b42
5 changed files with 34 additions and 1 deletions
6
lxc/executors/zig
Normal file
6
lxc/executors/zig
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /tmp/$2
|
||||
cp code.code main.zig
|
||||
timeout -s KILL 10 zig build-exe main.zig
|
||||
timeout -s KILL 3 xargs -a args.args -d '\n' ./main
|
6
lxc/tests/zig.zig
Normal file
6
lxc/tests/zig.zig
Normal file
|
@ -0,0 +1,6 @@
|
|||
const std = @import("std");
|
||||
|
||||
pub fn main() !void {
|
||||
const stdout = std.io.getStdOut().writer();
|
||||
try stdout.print("good\n", .{});
|
||||
}
|
|
@ -33,7 +33,7 @@ echo "elixir"
|
|||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "elixir --version"
|
||||
echo '---'
|
||||
|
||||
echo 'd'
|
||||
echo 'd'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "dmd --version"
|
||||
echo '---'
|
||||
|
||||
|
@ -124,3 +124,7 @@ echo '---'
|
|||
echo 'typescript'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "tsc --version"
|
||||
echo '---'
|
||||
|
||||
echo 'zig'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "zig version"
|
||||
echo '---'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue