-
Notifications
You must be signed in to change notification settings - Fork 191
75 lines (52 loc) · 1.81 KB
/
binaries.yml
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
64
65
66
67
68
69
70
71
name: "binaries"
on: [push]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Show GCC
run: gcc -v
- name: Setup Lua
run: |
curl -O https://www.lua.org/ftp/lua-5.1.5.tar.gz
tar -xZf lua-5.1.5.tar.gz
cd lua-5.1.5; make
- name: Get LPeg
run: |
curl -o lpeg.tar.gz http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.2.tar.gz
tar -xZf lpeg.tar.gz
- name: Get Luafilesystem
run: |
curl -L -o luafilesystem.tar.gz https://github.com/keplerproject/luafilesystem/archive/v1_8_0.tar.gz
tar -xZf luafilesystem.tar.gz
- name: Build
run: gcc -o moon '-Ilua-5.1.5/src/' bin/binaries/moon.c lpeg-1.0.2/lpvm.c lpeg-1.0.2/lpcap.c lpeg-1.0.2/lptree.c lpeg-1.0.2/lpcode.c lpeg-1.0.2/lpprint.c
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- uses: msys2/setup-msys2@v2
with:
install: gcc make curl
- name: Show GCC
run: gcc -v
- name: Setup Lua
run: |
curl -O https://www.lua.org/ftp/lua-5.1.5.tar.gz
tar -xZf lua-5.1.5.tar.gz
cd lua-5.1.5; make PLAT=mingw
- name: Get LPeg
run: |
curl -o lpeg.tar.gz http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.2.tar.gz
tar -xZf lpeg.tar.gz
- name: Get Luafilesystem
run: |
curl -L -o luafilesystem.tar.gz https://github.com/keplerproject/luafilesystem/archive/v1_8_0.tar.gz
tar -xZf luafilesystem.tar.gz
- name: List Files
run: Get-ChildItem -Recurse
- name: Run Lua
run: lua-5.1.5/src/lua.exe -v
- name: Build
run: gcc -o moon.exe '-Ilua-5.1.5/src/' bin/binaries/moon.c lpeg-1.0.2/lpvm.c lpeg-1.0.2/lpcap.c lpeg-1.0.2/lptree.c lpeg-1.0.2/lpcode.c lpeg-1.0.2/lpprint.c