File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,25 @@ jobs:
1515 - name : Install Tools
1616 run : |
1717 sudo apt-get update
18- sudo apt-get install -y faketime gcc libreadline-dev lua5.4 make mtools zip
18+ sudo apt-get install -y gcc libfaketime libreadline-dev lua5.4 make mtools zip
1919
2020 - uses : actions/checkout@v4
2121 with :
2222 submodules : recursive
2323 fetch-depth : 0
2424
25+ - name : Test libfaketime works
26+ run : |
27+ export FAKETIME=$(TZ=UTC0 git show --quiet --date='format-local:%Y-%m-%d %H:%M:%S' --format="%cd")
28+ export LD_PRELOAD=$(dpkg -L libfaketime | grep libfaketime.so.1)
29+ DATE=$(date +"%Y-%m-%d %H:%M:%S")
30+ echo "Date: $DATE"
31+ echo "Faketime: $FAKETIME"
32+ echo "ld-preload: $LD_PRELOAD"
33+ if [ "$FAKETIME" != "$DATE" ]; then
34+ exit 1
35+ fi
36+
2537 - name : Test Lua Core Demo Scripts function
2638 run : |
2739 lua demo/core/README.LUA
You can’t perform that action at this time.
0 commit comments