-
Notifications
You must be signed in to change notification settings - Fork 8k
Verify bundled sources using CI #20179
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
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-22.04 | ||
steps: | ||
- name: git checkout | ||
uses: actions/checkout@v5 | ||
|
||
- uses: dorny/paths-filter@v3 | ||
id: changes | ||
with: | ||
base: master | ||
filters: | | ||
opcache_jit_ir: | ||
- 'ext/opcache/jit/ir/**' | ||
|
||
- name: Opcache JIT IR - Download | ||
if: ${{ !cancelled() && (steps.changes.outputs.opcache_jit_ir == 'true' || (github.event_name != 'push' && github.event_name != 'pull_request')) }} | ||
uses: actions/checkout@v5 | ||
with: | ||
repository: dstogov/ir | ||
ref: 5a81104e650ebd7ac24eb63d4dff67db723a5278 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you propose to change this file every time when IR is updated? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. It can be replaced using simple regex or yq command:
|
||
path: ext/opcache/jit/ir | ||
|
||
- name: Opcache JIT IR - Verify files | ||
if: ${{ !cancelled() && (steps.changes.outputs.opcache_jit_ir == 'true' || (github.event_name != 'push' && github.event_name != 'pull_request')) }} | ||
run: | | ||
cd ext/opcache/jit/ir | ||
rm -r .git .github/workflows bench examples tests tools README.md TODO ir.g ir_cpuinfo.c ir_emit_c.c ir_emit_llvm.c ir_load.c ir_load_llvm.c ir_main.c ir_mem2ssa.c | ||
git restore README | ||
git add . -N && git diff --cached -a --exit-code . && git diff -a --exit-code . | ||
Comment on lines
+41
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comparison doesn't look robust. It's going to be broken every time when a new IR file is introduced. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It won't be broken when a new IR file is introduced. It will be broken when a new "not copied" file is introduced. Currently there are several files not copied and these files are ignored manually. |
Uh oh!
There was an error while loading. Please reload this page.