forked from replit/polygott
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhaxe.toml
63 lines (54 loc) · 1.25 KB
/
haxe.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name = "haxe"
entrypoint = "Main.hx"
extensions = [
"hx"
]
aptKeys = []
aptRepos = [
"ppa:haxe/releases"
]
packages = [
"haxe",
"libpng-dev", "libturbojpeg-dev", "libvorbis-dev", # fmt
"libopenal-dev", # openal
"libsdl2-dev", # sdl
"libmbedtls-dev", # ssl
"libuv1-dev" # uv
]
setup = [
# install hashlink
"pushd /tmp",
"curl --output hashlink.tar.gz -ks https://codeload.github.com/HaxeFoundation/hashlink/tar.gz/1.11",
"tar -xz --file=hashlink.tar.gz",
"rm hashlink.tar.gz",
"cd hashlink-1.11",
"sed -i '92s|.*|LFLAGS += -lm -Wl,-rpath,.:'$ORIGIN/../lib':$(PREFIX)/lib -Wl,--export-dynamic -Wl,--no-undefined|' Makefile",
"make all",
"make install",
"cd ..",
"rm -rf hashlink-1.11",
"popd",
"haxelib setup /home/runner"
]
runtimeSetup = [
"(echo -m Main && echo --interp) > /home/runner/build.hxml"
]
versionCommand = [
"haxe",
"--version"
]
[run]
command = [
"haxe",
"build.hxml"
]
[tests]
[tests.hello]
code = "class Main {\n\tstatic function main() {\n\t\ttrace(\"Hello, world!\");\n\t}\n}"
output = "Main.hx:3: Hello, world!\n"
[languageServer]
command = [
"haxe",
"--server-listen",
"stdio"
]