Skip to content

Commit fd9d0ee

Browse files
committed
rewrite binaries script to to build for both windows & linux
1 parent 0259c83 commit fd9d0ee

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed
Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,40 @@ name: "windows_exe"
33
on: [push]
44

55
jobs:
6-
build:
7-
runs-on: windows-latest
6+
linux:
7+
runs-on: ubuntu-latest
88

99
steps:
1010
- uses: actions/checkout@master
1111

12+
- name: Show GCC
13+
run: gcc -v
14+
15+
- name: Setup Lua
16+
run: |
17+
curl -O https://www.lua.org/ftp/lua-5.1.5.tar.gz
18+
tar -xZf lua-5.1.5.tar.gz
19+
cd lua-5.1.5; make PLAT=mingw
20+
21+
- name: Get LPeg
22+
run: |
23+
curl -o lpeg.tar.gz http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.2.tar.gz
24+
tar -xZf lpeg.tar.gz
25+
26+
- name: Get Luafilesystem
27+
run: |
28+
curl -L -o luafilesystem.tar.gz https://github.com/keplerproject/luafilesystem/archive/v1_8_0.tar.gz
29+
tar -xZf luafilesystem.tar.gz
30+
31+
- name: Build
32+
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
33+
34+
35+
windows:
36+
runs-on: windows-latest
37+
38+
steps:
39+
- uses: actions/checkout@master
1240

1341
- uses: msys2/setup-msys2@v2
1442
with:

0 commit comments

Comments
 (0)