Skip to content

Commit a350632

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

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/LuaWatcom.yml

Lines changed: 5 additions & 3 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,15 +114,17 @@ 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)
119120
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)
127129
mcopy -mi dist/LuaMulti.ima $files ::
128130

0 commit comments

Comments
 (0)