Skip to content

Commit 95d480b

Browse files
committed
The things we do for reproducible builds
1 parent 0a43b5c commit 95d480b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Diff for: .github/workflows/phar.yml

+17
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,28 @@ jobs:
7272
- name: "Set autoloader suffix"
7373
run: "composer config autoloader-suffix PHPStanChecksum"
7474

75+
- name: "Install libfaketime"
76+
run: "sudo apt-get install -y libfaketime"
77+
78+
- name: "Test libfaketime"
79+
run: "date"
80+
env:
81+
FAKETIME: 2017-10-11 08:58:00
82+
LD_PRELOAD: /usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1
83+
84+
- name: "Reset timestamps"
85+
run: 'find . -type f -exec touch {} +'
86+
env:
87+
FAKETIME: 2017-10-11 08:58:00
88+
LD_PRELOAD: /usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1
89+
7590
- name: "Compile PHAR for checksum"
7691
working-directory: "compiler/build"
7792
run: "php box.phar compile --no-parallel"
7893
env:
7994
PHAR_CHECKSUM: "1"
95+
FAKETIME: 2017-10-11 08:58:00
96+
LD_PRELOAD: /usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1
8097

8198
- name: "Unset autoloader suffix"
8299
run: "composer config autoloader-suffix --unset"

0 commit comments

Comments
 (0)