Skip to content

Commit 2de9084

Browse files
committed
test run, and upload artifacts
1 parent 755bff1 commit 2de9084

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/binaries.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,16 @@ jobs:
3131
- name: Build
3232
run: |
3333
mkdir -p dist
34-
gcc -o dist/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 lua-5.1.5/src/liblua.a -lm -ldl
34+
gcc -static -o dist/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 lua-5.1.5/src/liblua.a -lm -ldl
3535
36+
- name: Test run
37+
run: dist/moon -e 'print "hello world"'
38+
39+
- name: Upload artifact
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: moon-linux
43+
path: dist/
3644

3745
windows:
3846
runs-on: windows-latest
@@ -63,17 +71,16 @@ jobs:
6371
curl -L -o luafilesystem.tar.gz https://github.com/keplerproject/luafilesystem/archive/v1_8_0.tar.gz
6472
tar -xzf luafilesystem.tar.gz
6573
66-
- name: List Files
67-
run: Get-ChildItem -Recurse
68-
69-
- name: Run Lua
70-
run: lua-5.1.5/src/lua.exe -v
71-
7274
- name: Build
7375
run: |
7476
mkdir -p dist
75-
gcc -o dist/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 lua-5.1.5/src/liblua.a -lm
76-
77-
77+
gcc -static -o dist/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 lua-5.1.5/src/liblua.a -lm
7878
79+
- name: Test run
80+
run: dist/moon.exe -e 'print "hello world"'
7981

82+
- name: Upload artifact
83+
uses: actions/upload-artifact@v4
84+
with:
85+
name: moon-windows
86+
path: dist/

0 commit comments

Comments
 (0)