|
6 | 6 | DOS: |
7 | 7 | name: Lua for DOS |
8 | 8 | runs-on: ubuntu-latest |
9 | | - env: |
10 | | - LUA_VERSION: 5.4.6 |
| 9 | + #env: |
| 10 | + # LUA_VERSION: 5.4.6 |
11 | 11 |
|
12 | 12 | steps: |
13 | 13 | - uses: open-watcom/setup-watcom@v0 |
14 | 14 | with: |
15 | 15 | version: "1.9" |
16 | 16 | - 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 |
42 | 45 |
|
43 | 46 | - name: Build Lua for DOS 16-bit |
44 | 47 | run: | |
45 | 48 | export INCLUDE=$WATCOM/h |
46 | | - wmake -f watcom_l.mak |
47 | | - wmake -f watcom_l.mak clean |
| 49 | + wmake -f wm_dos16.mak |
48 | 50 |
|
49 | 51 | - name: Build Lua for DOS4GW |
50 | 52 | run: | |
51 | 53 | export INCLUDE=$WATCOM/h |
52 | | - wmake -f watcom_f.mak |
53 | | - wmake -f watcom_f.mak clean |
| 54 | + wmake -f wm_dos4g.mak |
54 | 55 |
|
55 | 56 | - name: UPX Binary Compression |
56 | 57 | uses: crazy-max/ghaction-upx@v3 |
|
84 | 85 | echo "else timeOfDay = 'day'" >> example.lua |
85 | 86 | echo "end" >> example.lua |
86 | 87 | 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 |
89 | 90 | echo "" >> example.lua |
90 | 91 | echo "os.exit() -- Exit script. Will also exit a interactive shell" >> example.lua |
91 | 92 | echo "" >> example.lua |
|
0 commit comments