Merge branch 'master' of github.com:engineer-man/piston

This commit is contained in:
Thomas Hobson 2021-06-19 21:24:51 +12:00
commit c011f212d4
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
13 changed files with 56 additions and 1 deletions

5
packages/raku/6.100.0/build.sh vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
curl -L "https://rakudo.org/dl/rakudo/rakudo-moar-2021.05-01-linux-x86_64-gcc.tar.gz" -o raku.tar.xz
tar xf raku.tar.xz --strip-components=1
rm raku.tar.xz

4
packages/raku/6.100.0/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# Path to raku binary
export PATH=$PWD/bin:$PATH

5
packages/raku/6.100.0/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "raku",
"version": "6.100.0",
"aliases": ["raku", "rakudo", "perl6", "p6", "pl6"]
}

3
packages/raku/6.100.0/run vendored Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
raku "$@"

1
packages/raku/6.100.0/test.raku vendored Normal file
View File

@ -0,0 +1 @@
say "OK"

View File

@ -7,4 +7,4 @@ curl -L "https://ziglang.org/download/0.7.1/zig-linux-x86_64-0.7.1.tar.xz" -o zi
tar xf zig.tar.xz --strip-components=1 tar xf zig.tar.xz --strip-components=1
rm zig.tar.xz rm zig.tar.xz
cd ../ cd ../

10
packages/zig/0.8.0/build.sh vendored Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
mkdir -p bin
cd bin/
curl -L "https://ziglang.org/download/0.8.0/zig-linux-x86_64-0.8.0.tar.xz" -o zig.tar.xz
tar xf zig.tar.xz --strip-components=1
rm zig.tar.xz
cd ../

6
packages/zig/0.8.0/compile vendored Normal file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# optimizing for small programs
rename 's/$/\.zig/' "$@" # Add .zig extension
zig build-exe -O ReleaseSafe --color off --cache-dir . --global-cache-dir . --name out *.zig

4
packages/zig/0.8.0/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# compiler path
export PATH=$PWD/bin:$PATH

5
packages/zig/0.8.0/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "zig",
"version": "0.8.0",
"aliases": ["zig"]
}

4
packages/zig/0.8.0/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
shift # Filename is only used in compile step, so we can take it out here
./out "$@"

6
packages/zig/0.8.0/test.zig vendored Normal file
View File

@ -0,0 +1,6 @@
const std = @import("std");
pub fn main() !void {
const stdout = std.io.getStdOut().writer();
try stdout.print("OK\n", .{});
}

View File

@ -276,6 +276,7 @@ Content-Type: application/json
`brainfuck`, `brainfuck`,
`cjam`, `cjam`,
`clojure`, `clojure`,
`cobol`,
`coffeescript`, `coffeescript`,
`cow`, `cow`,
`crystal`, `crystal`,
@ -314,6 +315,7 @@ Content-Type: application/json
`prolog`, `prolog`,
`pure`, `pure`,
`python`, `python`,
`raku`,
`rockstar`, `rockstar`,
`ruby`, `ruby`,
`rust`, `rust`,