Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hotfix] Fix Phar building #70

Merged
merged 2 commits into from
Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 5.4
php-version: 8.0
extensions: exif, phar, openssl
coverage: none
ini-values: phar.readonly=Off

- name: Install Box from GitHub
run: |
curl -LSs https://box-project.github.io/box2/installer.php | php
test -f ./box.phar
test -d ~/bin || mkdir ~/bin
mv ./box.phar ~/bin/box
~/bin/box -V
echo "$HOME/bin" >> $GITHUB_PATH

- name: Install Composer dependencies
uses: ramsey/composer-install@v1
with:
composer-options: "--no-dev"

- name: Install Box
run: wget https://github.com/humbug/box/releases/latest/download/box.phar -O box.phar && chmod 0755 box.phar && pwd

- name: Validate configuration
run: php box.phar validate -i box.json

- name: Building binary...
run: box build -v
run: php box.phar compile -v --config=box.json

- name: Show info about the build phar with humbug/box
run: php box.phar info -l parallel-lint.phar

- uses: actions/upload-artifact@v2
with:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,27 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 5.4
php-version: 8.0
extensions: exif, phar, openssl
coverage: none
ini-values: phar.readonly=Off, error_reporting=E_ALL, display_errors=On

- name: Install Box from GitHub
run: |
curl -LSs https://box-project.github.io/box2/installer.php | php
test -f ./box.phar
test -d ~/bin || mkdir ~/bin
mv ./box.phar ~/bin/box
~/bin/box -V
echo "$HOME/bin" >> $GITHUB_PATH

- name: Install Composer dependencies
uses: ramsey/composer-install@v1
with:
composer-options: "--no-dev"

- name: Install Box
run: wget https://github.com/humbug/box/releases/latest/download/box.phar -O box.phar && chmod 0755 box.phar && pwd

- name: Validate configuration
run: php box.phar validate -i box.json

- name: Building binary...
run: box build -v
run: php box.phar compile -v --config=box.json

- name: Show info about the build phar with humbug/box
run: php box.phar info -l parallel-lint.phar

- uses: actions/upload-artifact@v2
with:
Expand Down
19 changes: 8 additions & 11 deletions box.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"base-path": null,
"output": "parallel-lint.phar",
"chmod": "0755",
"check-requirements": false,
"compactors": [
"Herrera\\Box\\Compactor\\Php"
"KevinGH\\Box\\Compactor\\Php"
],
"extract": false,
"main": "parallel-lint",
"directories": [
"bin",
"src"
],
"files": [
"LICENSE"
],
Expand All @@ -14,15 +19,7 @@
"name": ["*.php"],
"exclude": ["Tests", "tests"],
"in": "vendor"
},
{
"exclude": ["Tests"],
"in": "src"
},
{
"in": "bin"
}
],
"stub": true,
"web": false
"stub": true
}