File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 20
20
runs-on : " ubuntu-latest"
21
21
timeout-minutes : 60
22
22
23
+ outputs :
24
+ checksum : ${{ steps.checksum.outputs.md5 }}
25
+
23
26
steps :
24
27
- name : " Checkout"
25
28
uses : " actions/checkout@v2"
50
53
working-directory : " compiler"
51
54
run : " php bin/prepare"
52
55
56
+ - name : " Compile PHAR for checksum"
57
+ working-directory : " compiler/build"
58
+ run : " php box.phar compile --no-parallel"
59
+ env :
60
+ PHAR_CHECKSUM : " 1"
61
+
62
+ - name : " Save checksum"
63
+ id : " checksum"
64
+ run : echo "::set-output name=md5::$(md5sum tmp/phpstan.phar)"
65
+
66
+ - name : " Delete checksum PHAR"
67
+ run : " rm tmp/phpstan.phar"
68
+
53
69
- name : " Compile PHAR"
54
70
working-directory : " compiler/build"
55
71
run : " php box.phar compile --no-parallel"
@@ -117,6 +133,9 @@ jobs:
117
133
- name : " cp PHAR"
118
134
run : cp tmp/phpstan.phar phpstan-dist/phpstan.phar
119
135
136
+ - name : " Update checksum"
137
+ run : echo ${{needs.compiler-tests.outputs.checksum}} > phpstan-dist/.phar-checksum
138
+
120
139
- name : " Sign PHAR"
121
140
working-directory : phpstan-dist
122
141
run : rm phpstan.phar.asc && gpg --command-fd 0 --pinentry-mode loopback -u "$GPG_ID" --batch --detach-sign --armor --output phpstan.phar.asc phpstan.phar
You can’t perform that action at this time.
0 commit comments