Repository navigation
feat: prepare compiled Composer distribution with a PHP builder #97
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
Open
coisa
wants to merge
30
commits into
main
Choose a base branch
from
codex/phar-distribution-poc
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
5e3ee24
test: qualify PHAR packaging and preserve copyable resources
coisa 806f298
chore: reconcile PHAR experiment with release-channel cleanup
coisa 62f49d2
ci: qualify PHAR runtime in the existing PHP matrix
coisa 7185eac
feat: build the direct Composer executable with PHP
coisa 4f01ae9
merge: reconcile current source and bind PHAR identity
coisa cbb5d77
fix: bind PHAR inventory to the actual staged inputs
coisa 4eb9442
fix: qualify normalized PHP builds and source installs
coisa 3c9729f
feat: include the ready PHAR in standard Composer distributions
coisa 73fb64e
test: recognize the published artifact upload channel
coisa 2f5627e
Merge branch 'main' into codex/phar-distribution-poc
coisa d5e7aa6
fix: bound PHAR cache lifetime and verify executable parity
coisa 9b9362a
docs: format Composer scripts and clarify compiled cache lifetime
coisa bc90378
test: qualify compiled ECS consumer development rules
coisa 502841a
Merge main into compiled distribution qualification
coisa e4c6f84
Merge branch 'main' into codex/phar-distribution-poc
coisa 8f34ec5
fix: build current distribution with locked Composer
coisa 406ce3b
Preserve remote main reconciliation in PHAR branch
coisa ea45a13
Merge branch 'main' into codex/phar-distribution-poc
coisa 392c861
test: accept the published GitHub Script v9 workflow ref
coisa be42d8a
fix: qualify the compiled distribution on current main
coisa 5bef00c
Merge current main into PHAR distribution qualification
coisa 15e93f2
build: refresh compiled distribution for the reconciled lock
coisa b25da19
fix: refresh compiled distribution and published Changelog runtime
coisa 2f649f8
Merge the maintainer refresh without replacing its executable
coisa cbee4af
ci: refresh compiled distribution on pull requests
coisa 610ab2b
Merge branch 'main' into codex/phar-distribution-poc
coisa 0ae6c1a
refactor: compile distribution with Box in dist
coisa 48b8d05
refactor: simplify PHAR tooling and CI autocommit
coisa 3c4b01c
build: adopt the qualified CI artifact and standard refresh workflow
coisa cf2c0bc
fix: name temporary runtimes after package
coisa 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| category: added | ||
| type: minor | ||
| --- | ||
|
|
||
| Distribute Code Standards as a ready-to-run PHAR for project and global Composer | ||
| installations, keeping bundled libraries out of the consumer dependency graph. | ||
| Preserve the complete resources and skills payload, support explicitly loaded | ||
| consumer ECS rules, and remove invocation-owned formatter caches at shutdown. | ||
| Build from the locked runtime and verify the complete executable against a fresh | ||
| build before execution. Compile with Box and a tracked configuration, keeping | ||
| the compiler isolated in CI. Refresh stale compiled executables through a separate | ||
| CI autocommit on unchanged same-repository PR heads. Use the compatible published Changelog workflow for | ||
| contribution checks and the existing release lifecycle. |
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
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
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 |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| name: 'Repository: Refresh compiled executable' | ||
| on: | ||
| workflow_run: | ||
| workflows: ['Repository: Quality'] | ||
| types: [completed] | ||
| permissions: | ||
| contents: read | ||
| actions: read | ||
| concurrency: | ||
| group: phar-refresh-${{ github.event.workflow_run.head_branch }} | ||
| cancel-in-progress: false | ||
| jobs: | ||
| refresh: | ||
| if: >- | ||
| github.event.workflow_run.event == 'pull_request' && | ||
| github.event.workflow_run.conclusion == 'failure' && | ||
| github.event.workflow_run.head_repository.full_name == github.repository | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| environment: release-channels | ||
| steps: | ||
| - name: Download the qualified update, if one was produced | ||
| id: artifact | ||
| continue-on-error: true | ||
| uses: actions/download-artifact@v8.0.2 | ||
| with: | ||
| name: code-standards-update-${{ github.event.workflow_run.head_sha }}-${{ github.event.workflow_run.run_attempt }} | ||
| run-id: ${{ github.event.workflow_run.id }} | ||
| github-token: ${{ github.token }} | ||
| path: ${{ runner.temp }}/phar-update | ||
| - if: steps.artifact.outcome == 'success' | ||
| id: writer | ||
| uses: actions/create-github-app-token@v3.3.0 | ||
| with: | ||
| client-id: 'Iv23liHqRng02H747IYa' | ||
| private-key: ${{ secrets.RELEASE_CHANNEL_APP_PRIVATE_KEY }} | ||
| owner: php-fast-forward | ||
| repositories: code-standards | ||
| permission-contents: write | ||
| - if: steps.artifact.outcome == 'success' | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| ref: ${{ github.event.workflow_run.head_sha }} | ||
| token: ${{ steps.writer.outputs.token }} | ||
| - if: steps.artifact.outcome == 'success' | ||
| run: | | ||
| test "$(git log -1 --format=%s)" != 'build: refresh compiled executable' | ||
| test -f dist/code-standards && test ! -L dist && test ! -L dist/code-standards | ||
| test -f "$RUNNER_TEMP/phar-update/code-standards" && test ! -L "$RUNNER_TEMP/phar-update/code-standards" | ||
| install -m 755 "$RUNNER_TEMP/phar-update/code-standards" dist/code-standards | ||
| - if: steps.artifact.outcome == 'success' | ||
| uses: stefanzweifel/git-auto-commit-action@v7.2.1 | ||
| with: | ||
| branch: ${{ github.event.workflow_run.head_branch }} | ||
| file_pattern: dist/code-standards | ||
| commit_message: 'build: refresh compiled executable' | ||
| skip_checkout: true | ||
| skip_fetch: true |
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 |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| /vendor/ | ||
| /dist/*.phar | ||
| /.build/ | ||
| /.phpunit.cache/ | ||
|
|
||
|
|
||
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.
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.