-
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
Closed
+88
−11
Closed
Changes from 13 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
Some comments aren't visible on the classic Files Changed page.
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 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 config.h.generic config.h | ||
mvorisek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 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,10 @@ | ||
| #!/bin/sh | ||
| set -ex | ||
|
|
||
| cd "$(dirname "$0")/../../$1" | ||
|
|
||
| # display overview of changed files | ||
| git status | ||
|
|
||
| # display & detect all changes | ||
| git add . -N && git diff --cached -a --exit-code . && git diff -a --exit-code . | ||
mvorisek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mvorisek marked this conversation as resolved.
Outdated
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,36 @@ | ||
| name: Verify Bundled Files | ||
|
|
||
| on: | ||
| push: | ||
mvorisek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mvorisek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| pull_request: | ||
mvorisek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| schedule: | ||
| - cron: "0 1 * * *" | ||
mvorisek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| workflow_dispatch: ~ | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| VERIFY_BUNDLED_FILES: | ||
| name: Verify Bundled Files | ||
| runs-on: ubuntu-22.04 | ||
mvorisek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| steps: | ||
| - name: git checkout | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - uses: dorny/paths-filter@v3 | ||
mvorisek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| id: changes | ||
| with: | ||
| base: master | ||
| filters: | | ||
| pcre2: | ||
| - '.github/scripts/download-bundled/pcre2.sh' | ||
| - 'ext/pcre/pcre2lib/**' | ||
|
|
||
| - name: PCRE2 - Download | ||
| if: ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || (github.event_name != 'push' && github.event_name != 'pull_request')) }} | ||
mvorisek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| run: .github/scripts/download-bundled/pcre2.sh | ||
|
|
||
| - name: PCRE2 - Verify files | ||
| if: ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || (github.event_name != 'push' && github.event_name != 'pull_request')) }} | ||
| run: .github/scripts/test-directory-unchanged.sh ext/pcre/pcre2lib | ||
mvorisek marked this conversation as resolved.
Outdated
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
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.