Skip to content

Commit 4b57c1e

Browse files
committed
ci(release): replace box with bin/build-phar.php
Box (humbug/box) was the previous PHAR compiler. Removed it in favor of the internal bin/build-phar.php which: - Needs no external tool installation (saving ~5s + wget overhead) - Needs no composer install (autoloader is generated inline) - Produces a PHAR in <0.1s instead of 50s+ - Outputs 0.03 MB instead of ~30 MB Previous flow: wget box.phar → composer install → box compile --config=box.json New flow: php -d phar.readonly=0 bin/build-phar.php
1 parent 38369e7 commit 4b57c1e

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,9 @@ jobs:
2323
ini-values: phar.readonly=0
2424
tools: composer:v2
2525

26-
- name: Install humbug/box
27-
run: |
28-
wget -q -O box https://github.com/box-project/box/releases/latest/download/box.phar
29-
chmod +x box
30-
sudo mv box /usr/local/bin/box
31-
box --version
32-
33-
- name: Install dependencies
34-
run: composer install --no-interaction --prefer-dist --optimize-autoloader
35-
3626
- name: Compile PHAR
3727
run: |
38-
php -d phar.readonly=0 box compile --config=box.json
28+
php -d phar.readonly=0 bin/build-phar.php
3929
ls -lh build/kcode.phar
4030
4131
- name: Verify PHAR

0 commit comments

Comments
 (0)