Skip to content

Commit 129f910

Browse files
committed
[documentation] Fix github action example
1 parent d61a6ee commit 129f910

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ _Installing phpcc version 1.2.4 / PHP 8.0_
152152
```yaml
153153
# ...
154154
jobs:
155-
job1:
155+
compile:
156+
name: Compile source files
157+
runs-on: ubuntu-latest
156158
steps:
157159
- name: Checkout repository
158160
uses: actions/checkout@v4
@@ -162,8 +164,14 @@ jobs:
162164
with:
163165
php-version: 8.0
164166

165-
- name: Compile ACME application
166-
run: phpcc -q -e bin/acme.php -d src/Acme:php -d vendor/ -f LICENSE -o bin/acme
167+
- name: Install dependencies
168+
run: composer install --no-dev --optimize-autoloader
169+
170+
- name: Create virtual version
171+
run: echo $(date +"%Y-%m-%d %H:%M:%S") > ./version
172+
173+
- name: Compile sources
174+
run: php -d phar.readonly=0 /usr/local/bin/phpcc -e bin/acme.php -d src -d vendor -f version -o bin/acme --quiet
167175

168176
- name: Smoke test (show version)
169177
run: bin/acme --version

0 commit comments

Comments
 (0)