Skip to content

Commit 547867a

Browse files
committed
update to support lib submodules
1 parent c57c9eb commit 547867a

3 files changed

Lines changed: 49 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
steps:
2121
- name: Checkout code
2222
uses: actions/checkout@v4
23+
with:
24+
submodules: true
25+
26+
- name: Initialize submodules
27+
run: |
28+
git submodule update --init --recursive
2329
2430
- name: Setup PHP
2531
uses: shivammathur/setup-php@v2
@@ -31,6 +37,18 @@ jobs:
3137
sudo apt-get update
3238
sudo apt-get install -y build-essential
3339
40+
- name: Verify submodule files
41+
run: |
42+
echo "Checking if lib directory and files exist:"
43+
ls -la lib/
44+
echo "Checking specific source files:"
45+
test -f "lib/arena.c" && echo "arena.c exists" || echo "arena.c missing"
46+
test -f "lib/csv_config.c" && echo "csv_config.c exists" || echo "csv_config.c missing"
47+
test -f "lib/csv_reader.c" && echo "csv_reader.c exists" || echo "csv_reader.c missing"
48+
test -f "lib/csv_writer.c" && echo "csv_writer.c exists" || echo "csv_writer.c missing"
49+
test -f "lib/csv_parser.c" && echo "csv_parser.c exists" || echo "csv_parser.c missing"
50+
test -f "lib/csv_utils.c" && echo "csv_utils.c exists" || echo "csv_utils.c missing"
51+
3452
- name: Validate package.xml if it exists
3553
run: |
3654
if [ -f package.xml ]; then
@@ -76,6 +94,12 @@ jobs:
7694
steps:
7795
- name: Checkout code
7896
uses: actions/checkout@v4
97+
with:
98+
submodules: true
99+
100+
- name: Initialize submodules
101+
run: |
102+
git submodule update --init --recursive
79103
80104
- name: Setup PHP
81105
uses: shivammathur/setup-php@v2
@@ -87,6 +111,18 @@ jobs:
87111
sudo apt-get update
88112
sudo apt-get install -y build-essential
89113
114+
- name: Verify submodule files
115+
run: |
116+
echo "Checking if lib directory and files exist:"
117+
ls -la lib/
118+
echo "Checking specific source files:"
119+
test -f "lib/arena.c" && echo "arena.c exists" || echo "arena.c missing"
120+
test -f "lib/csv_config.c" && echo "csv_config.c exists" || echo "csv_config.c missing"
121+
test -f "lib/csv_reader.c" && echo "csv_reader.c exists" || echo "csv_reader.c missing"
122+
test -f "lib/csv_writer.c" && echo "csv_writer.c exists" || echo "csv_writer.c missing"
123+
test -f "lib/csv_parser.c" && echo "csv_parser.c exists" || echo "csv_parser.c missing"
124+
test -f "lib/csv_utils.c" && echo "csv_utils.c exists" || echo "csv_utils.c missing"
125+
90126
- name: Validate package.xml if it exists
91127
run: |
92128
if [ -f package.xml ]; then

.github/workflows/release_validate.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ jobs:
2121
steps:
2222
- name: Checkout code
2323
uses: actions/checkout@v4
24+
with:
25+
submodules: true
26+
27+
- name: Initialize submodules
28+
run: |
29+
git submodule update --init --recursive
2430
2531
- name: Setup PHP
2632
uses: shivammathur/setup-php@v2

.github/workflows/windows.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jobs:
2727
steps:
2828
- name: Checkout fastcsv
2929
uses: actions/checkout@v4
30+
with:
31+
submodules: true
32+
33+
- name: Initialize submodules
34+
run: |
35+
git submodule update --init --recursive
36+
3037
- name: Build the extension
3138
uses: php/php-windows-builder/extension@v1
3239
with:

0 commit comments

Comments
 (0)