Skip to content

Commit 9d50829

Browse files
committed
pcre wip
1 parent 2f0a0c5 commit 9d50829

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
set -e
3+
4+
root_dir=$(cd ../../..; pwd)
5+
6+
commit=5a81104e650ebd7ac24eb63d4dff67db723a5278 # 10.46 release
7+
8+
rm -rf ext/pcre/pcre2lib
9+
git clone --revision=$commit https://github.com/PCRE2Project/pcre2.git ext/pcre/pcre2lib
10+
11+
cd ext/pcre/pcre2lib
12+
rm -r .git
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
set -e
3+
4+
root_dir=$(cd ../../..; pwd)
5+
6+
cd $root_dir/$1
7+
git add . -N && git diff --cached -a --exit-code . && git diff -a --exit-code .
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Verify Bundled Files
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: "0 1 * * *"
8+
workflow_dispatch: ~
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
VERIFY_BUNDLED_FILES:
15+
name: Verify Bundled Files
16+
runs-on: ubuntu-22.04
17+
steps:
18+
- name: git checkout
19+
uses: actions/checkout@v5
20+
21+
- uses: dorny/paths-filter@v3
22+
id: changes
23+
with:
24+
base: master
25+
filters: |
26+
pcre2:
27+
- 'ext/pcre/pcre2lib/**'
28+
29+
- name: PCRE2 - Download
30+
if: ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || (github.event_name != 'push' && github.event_name != 'pull_request')) }}
31+
run: .github/scripts/download-bundled/pcre2.sh
32+
33+
- name: PCRE2 - Verify files
34+
if: ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || (github.event_name != 'push' && github.event_name != 'pull_request')) }}
35+
run: .github/scripts/download-bundled/verify-directory-unchanged.sh ext/pcre/pcre2lib

0 commit comments

Comments
 (0)