-
Notifications
You must be signed in to change notification settings - Fork 8k
Verify bundled sources using CI - PCRE2 & SLJIT #20354
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
mvorisek
wants to merge
20
commits into
php:master
Choose a base branch
from
mvorisek:verify_bundled_pcre
base: master
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.
+88
−11
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
74aefc4
working filter and empty scripts
mvorisek ae3ccb9
DEBUG FORCE CHANGE/CI
mvorisek ff07fc5
wip update local bundle from upstream
mvorisek 5fbbe62
--recurse-submodules
mvorisek bd1bda4
Revert "DEBUG FORCE CHANGE/CI"
mvorisek 60385d5
fix outdated pcre2_chartables.c (pcre2_chartables.c.dist)
mvorisek d739629
fix outdated pcre2.h (pcre2.h.generic)
mvorisek 95a110a
impl
mvorisek 8d00dc3
run if download script changes
mvorisek 8a9e828
reference using tag
mvorisek 66c5bfa
dedup changed files testing
mvorisek 4227f15
Merge branch 'master' - merge PCRE 10.44 downgrade
mvorisek a120ad9
adjust to downgrade (PR 20380)
mvorisek 0370530
one step in favor of grouped output
mvorisek 6d6d481
quote sh variable
mvorisek c38a094
add step name
mvorisek a1d59c6
improve directory diff script
mvorisek 2621136
address workflow feedback
mvorisek 035a235
comment after "git restore config.h" is enough
mvorisek 8448da6
remove mention of unused "-f" option
mvorisek 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 |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| #!/bin/sh | ||
| set -ex | ||
| cd "$(dirname "$0")/../../.." | ||
|
|
||
| revision=refs/tags/pcre2-10.44 | ||
|
|
||
| git clone --depth 1 --recurse-submodules --revision="$revision" https://github.com/PCRE2Project/pcre2.git /tmp/php-src-bundled/pcre2 | ||
|
|
||
| rm -rf ext/pcre/pcre2lib | ||
| cp -R /tmp/php-src-bundled/pcre2/src ext/pcre/pcre2lib | ||
|
|
||
| cd ext/pcre/pcre2lib | ||
|
|
||
| # remove unneeded files | ||
| rm config.h.generic | ||
| rm pcre2.h.in | ||
| rm pcre2_dftables.c | ||
| rm pcre2_fuzzsupport.c | ||
| rm pcre2_jit_test.c | ||
| rm pcre2demo.c | ||
| rm pcre2grep.c | ||
| rm pcre2posix.c | ||
| rm pcre2posix.h | ||
| rm pcre2posix_test.c | ||
| rm pcre2test.c | ||
|
|
||
| # move renamed files | ||
| mv pcre2.h.generic pcre2.h | ||
| mv pcre2_chartables.c.dist pcre2_chartables.c | ||
|
|
||
| # add extra files | ||
| git restore config.h # based on config.h.generic but with many changes |
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,13 @@ | ||
| #!/bin/sh | ||
| set -ex | ||
|
|
||
| cd "$(dirname "$0")/../../$1" | ||
|
|
||
| # notify git about untracked (except ignored) files | ||
| git add -N . | ||
|
|
||
| # display overview of changed files | ||
| git status . | ||
|
|
||
| # display diff of working directory vs HEAD commit and set exit code | ||
| git diff -a --exit-code HEAD . | ||
mvorisek marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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,39 @@ | ||
| name: Verify Bundled Files | ||
|
|
||
| on: | ||
| push: ~ | ||
| pull_request: ~ | ||
| schedule: | ||
| - cron: "0 1 * * *" | ||
| workflow_dispatch: ~ | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| VERIFY_BUNDLED_FILES: | ||
| name: Verify Bundled Files | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: git checkout | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Detect changed files | ||
| uses: dorny/paths-filter@v3 | ||
| id: changes | ||
| with: | ||
| base: master | ||
| filters: | | ||
| pcre2: | ||
| - '.github/scripts/download-bundled/pcre2.sh' | ||
| - 'ext/pcre/pcre2lib/**' | ||
|
|
||
| - name: PCRE2 | ||
| if: ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }} | ||
| run: | | ||
| echo "::group::Download" | ||
| .github/scripts/download-bundled/pcre2.sh | ||
| echo "::endgroup::" | ||
| echo "::group::Verify files" | ||
| .github/scripts/test-directory-unchanged.sh ext/pcre/pcre2lib | ||
| echo "::endgroup::" |
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.