|
4 | 4 |
|
5 | 5 | jobs: |
6 | 6 | Watcom: |
7 | | - name: Lua for Watcom |
| 7 | + name: Build Lua with Open Watcom |
8 | 8 | runs-on: ubuntu-latest |
9 | 9 |
|
10 | 10 | steps: |
@@ -64,27 +64,55 @@ jobs: |
64 | 64 | run: | |
65 | 65 | unix2dos *.lua |
66 | 66 |
|
67 | | - - name: Create 160k Floppy Diskette Image |
| 67 | + - name: Create Binaries Zip |
68 | 68 | run: | |
69 | | - mformat -C -i dist/Lua5DD8.ima -v LUA -f 160 |
70 | | - mcopy -i dist/Lua5DD8.ima dist/bin/lua16.exe example.lua :: |
| 69 | + zip -j9 --DOS-names "dist/Lua Exe.zip" dist/bin/*.exe example.lua |
71 | 70 |
|
72 | | - - name: Create 1.4M Floppy Diskette Image |
| 71 | + - name: Create 160k 16-bit DOS Floppy Diskette Image |
73 | 72 | run: | |
74 | | - mformat -C -i dist/Lua3HD18.ima -v LUA -f 1440 |
75 | | - mcopy -i dist/Lua3HD18.ima dist/bin/*.exe example.lua :: |
| 73 | + mformat -C -i dist/Lua160k.ima -v "LUA DOS" -f 160 |
| 74 | + mcopy -i dist/Lua160k.ima dist/bin/lua16.exe example.lua :: |
76 | 75 |
|
77 | | - - name: Create Zip Binaries |
| 76 | + - name: Create 1.4M Multi-Platform Floppy Diskette Image |
78 | 77 | run: | |
79 | | - zip -j9 --DOS-names "dist/Lua DOS Bin.zip" dist/bin/*.exe example.lua |
| 78 | + mformat -C -i dist/LuaMulti.ima -v "LUA MULTIOS" -f 1440 |
| 79 | + mcopy -i dist/LuaMulti.ima dist/bin/*.exe example.lua :: |
80 | 80 |
|
81 | | - - name: Zip Disk Images |
| 81 | + - name: Create Floppy Disk Images Zip |
82 | 82 | run: | |
83 | | - zip -j9 --DOS-names "dist/Lua DOS Ima.zip" dist/*.ima |
| 83 | + zip -j9 --DOS-names "dist/Lua Ima.zip" dist/*.ima |
84 | 84 |
|
85 | 85 | - name: Upload Artifacts |
86 | 86 | uses: actions/upload-artifact@v4 |
87 | 87 | with: |
88 | 88 | name: 'Lua Binaries' |
89 | 89 | path: dist/*.zip |
90 | 90 | compression-level: 0 |
| 91 | + |
| 92 | + Draft: |
| 93 | + name: Draft Release |
| 94 | + needs: Watcom |
| 95 | + runs-on: ubuntu-latest |
| 96 | + if: startsWith(github.ref, 'refs/tags/202') |
| 97 | + |
| 98 | + permissions: |
| 99 | + contents: write |
| 100 | + actions: read |
| 101 | + |
| 102 | + steps: |
| 103 | + - uses: actions/checkout@v4 |
| 104 | + |
| 105 | + - name: Download Artifacts |
| 106 | + uses: actions/download-artifact@v4 |
| 107 | + |
| 108 | + - name: Create Draft Release |
| 109 | + env: |
| 110 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 111 | + run: | |
| 112 | + TAG_NAME="${GITHUB_REF#refs/tags/}" # Extract the tag name |
| 113 | + gh release create "$TAG_NAME" \ |
| 114 | + --draft \ |
| 115 | + --title "$TAG_NAME" \ |
| 116 | + --notes "Lua for Watcom builds from $TAG_NAME" \ |
| 117 | + "Lua Binaries/Lua Exe.zip#Lua Exe.zip" \ |
| 118 | + "Lua Binaries/Lua Ima.zip#Lua Ima.zip" |
0 commit comments