Skip to content

Commit 39fe0c8

Browse files
committed
Ensure floppy disk images have the same formatted date time.
1 parent e7807b2 commit 39fe0c8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/LuaWatcom.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install Tools
1616
run: |
1717
sudo apt-get update
18-
sudo apt-get install -y gcc libreadline-dev lua5.4 make mtools zip
18+
sudo apt-get install -y faketime gcc libreadline-dev lua5.4 make mtools zip
1919
2020
- uses: actions/checkout@v4
2121
with:
@@ -114,17 +114,19 @@ jobs:
114114
run: |
115115
label="LUA DOS"
116116
serial="0x$(echo "$label$(git log -1 --format=%ct)" | sha256sum | cut -c1-8)"
117-
mformat -C -i dist/Lua160k.ima -v "$label" -f 160 -N $serial
117+
date=$(git log -1 --format=%cd --date=format:'%Y-%m-%d %H:%M:%S')
118+
faketime -f "$date" mformat -C -i dist/Lua160k.ima -v "$label" -f 160 -N $serial
118119
files=$(find dist/bin/LUA16.EXE demo/core/*.LUA | sort | xargs)
119-
mcopy -mi dist/Lua160k.ima $files ::
120+
faketime -f "$date" mcopy -mi dist/Lua160k.ima $files ::
120121
121122
- name: Create 1.4M Multi-Platform Floppy Diskette Image
122123
run: |
123124
label="LUA MULTIOS"
124125
serial="0x$(echo "$label$(git log -1 --format=%ct)" | sha256sum | cut -c1-8)"
125-
mformat -C -i dist/LuaMulti.ima -v "$label" -f 1440 -N $serial
126+
date=$(git log -1 --format=%cd --date=format:'%Y-%m-%d %H:%M:%S')
127+
faketime -f "$date" mformat -C -i dist/LuaMulti.ima -v "$label" -f 1440 -N $serial
126128
files=$(find dist/bin/*.EXE demo/core/*.LUA demo/xtra/*.LUA | sort | xargs)
127-
mcopy -mi dist/LuaMulti.ima $files ::
129+
faketime -f "$date" mcopy -mi dist/LuaMulti.ima $files ::
128130
129131
- name: Create Floppy Disk Images Zip
130132
run: |

0 commit comments

Comments
 (0)