Skip to content

Commit 58f091d

Browse files
committed
add debug logs for directory structure of bindings and targets
1 parent d171c5f commit 58f091d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/swift.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
cd ldk-c-bindings
4141
./genbindings.sh ../rust-lightning true
4242
cd ..
43+
- name: Debug bindings target directory structure
44+
run: |
45+
python ci/walker.py ldk-c-bindings/lightning-c-bindings/target
4346
- name: Copy new headers into bindings
4447
run: |
4548
mkdir -p ci/LDKSwift/Sources/LDKHeaders/include
@@ -58,6 +61,9 @@ jobs:
5861
- name: Fix Swift files
5962
run: |
6063
python ci/fix_swift_imports.py
64+
- name: Debug CI directory structure
65+
run: |
66+
python ci/walker.py ci/
6167
- name: Build Swift bindings package
6268
run: |
6369
cd ci/LDKSwift

ci/walker.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import os
2+
import sys
3+
4+
walk_directory = sys.argv[1] if len(sys.argv) > 1 else os.path.dirname(os.path.realpath(__file__))
5+
6+
# Create a collection of local header (or C) files
7+
for current_directory, current_subdirectories, current_files in os.walk(walk_directory):
8+
for current_file in current_files:
9+
print(os.path.join(current_directory, current_file))

0 commit comments

Comments
 (0)