-
Notifications
You must be signed in to change notification settings - Fork 61
Creation of PHAR using Nix, in a reproducible environment #754
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
0f143ff
chore: `ext-json` is enabled by default since PHP 8
drupol a8ffb14
fix creation of PHAR release
drupol ef57b1b
fix creation of PHAR release using a flake
drupol 337614c
renovate: support `flake.lock` updates
drupol 430bb44
simplification by creating a script that build the phar instead
drupol 0b166ad
remove obsolete build script since Nix is used
drupol 75d5d96
make PHAR reproducible
drupol 6545903
fix: minor typo in banner
drupol d732c9c
fix: make sure the generated PHAR actually works
drupol b1ac9ad
remove not-needed dependency
drupol 7e720f3
update `.gitattributes` entry for `infection.json.dist`
drupol 9e2b47a
use `nix build .#phar` in CI
drupol b998178
remove `resign.php`
drupol 959fa81
switch to Box 4.6.0
drupol 2b9925c
remove extra input
drupol 4823995
update `flake.nix`
drupol d9ecc6f
build-script: add `composer validate` step
drupol a860862
flake.lock: update
drupol 094d6cd
Reverting `composer.lock` to a version compatible with PHP 8.1.x
Ocramius File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,36 +26,11 @@ jobs: | |
- name: "Checkout" | ||
uses: "actions/checkout@v3" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/[email protected]" | ||
with: | ||
coverage: "pcov" | ||
php-version: "${{ matrix.php-version }}" | ||
ini-values: memory_limit=-1 | ||
- uses: DeterminateSystems/nix-installer-action@v9 | ||
|
||
- name: "Cache dependencies" | ||
uses: "actions/cache@v3" | ||
with: | ||
path: | | ||
~/.composer/cache | ||
vendor | ||
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" | ||
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" | ||
|
||
- name: "Install lowest dependencies" | ||
if: ${{ matrix.dependencies == 'lowest' }} | ||
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Install highest dependencies" | ||
if: ${{ matrix.dependencies == 'highest' }} | ||
run: "composer update --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Install locked dependencies" | ||
if: ${{ matrix.dependencies == 'locked' }} | ||
run: "composer install --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "build-phar.sh" | ||
run: "build-phar.sh" | ||
- name: "Build PHAR" | ||
run: | | ||
"nix run .#build-phar-script" | ||
|
||
- name: "Upload PHAR" | ||
uses: fnkr/[email protected] | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
{ | ||
"compactors": [ | ||
"Herrera\\Box\\Compactor\\Php", | ||
"Herrera\\Box\\Compactor\\Json" | ||
], | ||
"compression": "GZ", | ||
"main": "bin/roave-backward-compatibility-check.php", | ||
"output": "dist/roave-backward-compatibility-check.phar", | ||
"files-bin": [ | ||
"LICENSE", | ||
"vendor/composer/composer/LICENSE" | ||
], | ||
"chmod": "0755", | ||
"git-version": "git-version" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.