Skip to content

Commit f6b098a

Browse files
committed
localy runnable
1 parent aec838a commit f6b098a

File tree

3 files changed

+44
-10
lines changed

3 files changed

+44
-10
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/sh
2+
set -ex
3+
cd "$(dirname "$0")/../../.."
4+
5+
commit=5a81104e650ebd7ac24eb63d4dff67db723a5278
6+
7+
rm -rf ext/opcache/jit/ir
8+
git clone --revision=$commit https://github.com/dstogov/ir.git ext/opcache/jit/ir
9+
10+
cd ext/opcache/jit/ir
11+
12+
# remove unneeded files
13+
rm -r .git
14+
rm -r .github
15+
rm -r bench
16+
rm -r examples
17+
rm -r tests
18+
rm -r tools
19+
rm README.md
20+
rm TODO
21+
rm ir.g
22+
rm ir_cpuinfo.c
23+
rm ir_emit_c.c
24+
rm ir_emit_llvm.c
25+
rm ir_load.c
26+
rm ir_load_llvm.c
27+
rm ir_main.c
28+
rm ir_mem2ssa.c
29+
30+
# add extra files
31+
git restore README
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
set -ex
3+
cd "$(dirname "$0")/../../.."
4+
5+
cd "$1"
6+
7+
# display overview of changed files
8+
git status
9+
10+
# display & detect all changes
11+
git add . -N && git diff --cached -a --exit-code . && git diff -a --exit-code .

.github/workflows/verify-bundled-files.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,8 @@ jobs:
2828
2929
- name: Opcache JIT IR - Download
3030
if: ${{ !cancelled() && (steps.changes.outputs.opcache_jit_ir == 'true' || (github.event_name != 'push' && github.event_name != 'pull_request')) }}
31-
uses: actions/checkout@v5
32-
with:
33-
repository: dstogov/ir
34-
ref: 5a81104e650ebd7ac24eb63d4dff67db723a5278
35-
path: ext/opcache/jit/ir
31+
run: .github/scripts/download-bundled/opcache-jit-ir.sh
3632

3733
- name: Opcache JIT IR - Verify files
3834
if: ${{ !cancelled() && (steps.changes.outputs.opcache_jit_ir == 'true' || (github.event_name != 'push' && github.event_name != 'pull_request')) }}
39-
run: |
40-
cd ext/opcache/jit/ir
41-
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
42-
git restore README
43-
git add . -N && git diff --cached -a --exit-code . && git diff -a --exit-code .
35+
run: .github/scripts/download-bundled/verify-directory-unchanged.sh ext/opcache/jit/ir

0 commit comments

Comments
 (0)