Skip to content

Commit 3ac0c9b

Browse files
committed
Refactor GitHub workflow
1 parent 93f2a55 commit 3ac0c9b

File tree

1 file changed

+34
-33
lines changed

1 file changed

+34
-33
lines changed

.github/workflows/LuaWatcom.yml

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,51 +6,52 @@ jobs:
66
DOS:
77
name: Lua for DOS
88
runs-on: ubuntu-latest
9-
env:
10-
LUA_VERSION: 5.4.6
9+
#env:
10+
# LUA_VERSION: 5.4.6
1111

1212
steps:
1313
- uses: open-watcom/setup-watcom@v0
1414
with:
1515
version: "1.9"
1616
- uses: actions/checkout@v4
17-
18-
- name: Download Lua Sources
19-
run: |
20-
wget https://lua.org/ftp/lua-$LUA_VERSION.tar.gz
21-
22-
- name: Verify Lua Sources
23-
env:
24-
HASH: 25a429319dff20dfbfb9956c2b5be911
25-
26-
run: |
27-
echo "$HASH lua-$LUA_VERSION.tar.gz" > hash
28-
md5sum -c hash
29-
rm hash
30-
31-
- name: Extract Lua Sources
32-
run: |
33-
tar -xzf lua-$LUA_VERSION.tar.gz
34-
mv lua-$LUA_VERSION/src/* .
35-
rm -R lua-$LUA_VERSION*
36-
37-
- name: Prepare Lua Sources for Watcom
38-
run: |
39-
patch luaconf.h luaconf.pat
40-
patch lopcodes.h lopcodes.pat
41-
patch lutf8lib.c lutf8lib.pat
17+
with:
18+
submodules: recursive
19+
fetch-depth: 0
20+
21+
#- name: Download Lua Sources
22+
# run: |
23+
# wget https://lua.org/ftp/lua-$LUA_VERSION.tar.gz
24+
25+
#- name: Verify Lua Sources
26+
# env:
27+
# HASH: 25a429319dff20dfbfb9956c2b5be911
28+
29+
# run: |
30+
# echo "$HASH lua-$LUA_VERSION.tar.gz" > hash
31+
# md5sum -c hash
32+
# rm hash
33+
34+
#- name: Extract Lua Sources
35+
# run: |
36+
# tar -xzf lua-$LUA_VERSION.tar.gz
37+
# mv lua-$LUA_VERSION/src/* .
38+
# rm -R lua-$LUA_VERSION*
39+
40+
#- name: Prepare Lua Sources for Watcom
41+
# run: |
42+
# patch luaconf.h luaconf.pat
43+
# patch lopcodes.h lopcodes.pat
44+
# patch lutf8lib.c lutf8lib.pat
4245

4346
- name: Build Lua for DOS 16-bit
4447
run: |
4548
export INCLUDE=$WATCOM/h
46-
wmake -f watcom_l.mak
47-
wmake -f watcom_l.mak clean
49+
wmake -f wm_dos16.mak
4850
4951
- name: Build Lua for DOS4GW
5052
run: |
5153
export INCLUDE=$WATCOM/h
52-
wmake -f watcom_f.mak
53-
wmake -f watcom_f.mak clean
54+
wmake -f wm_dos4g.mak
5455
5556
- name: UPX Binary Compression
5657
uses: crazy-max/ghaction-upx@v3
@@ -84,8 +85,8 @@ jobs:
8485
echo "else timeOfDay = 'day'" >> example.lua
8586
echo "end" >> example.lua
8687
echo "" >> example.lua
87-
echo "-- Concatinate and print timeOfDay to screen as part of a greeting" >> example.lua
88-
echo "print('Good ' .. timeOfDay .. ' DOS! From Lua.')" >> example.lua
88+
echo "-- Concatenate and print timeOfDay and Lua version to screen as part of a greeting" >> example.lua
89+
echo "print('Good ' .. timeOfDay .. ' from ' .. _VERSION .. '.')" >> example.lua
8990
echo "" >> example.lua
9091
echo "os.exit() -- Exit script. Will also exit a interactive shell" >> example.lua
9192
echo "" >> example.lua

0 commit comments

Comments
 (0)