Skip to content

Commit 565d889

Browse files
committed
See wtf is in the gh action machine
1 parent 1e3ce83 commit 565d889

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

install_executorch.py

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,58 @@ def main(args):
199199
if not python_is_compatible():
200200
sys.exit(1)
201201

202+
print("Doing some gh action machine filesystem exploration")
203+
204+
# 1. Print current working directory
205+
import os
206+
207+
cwd = os.getcwd()
208+
print("Current working directory:", cwd)
209+
210+
# 2. Print everything in current working directory
211+
print("\nContents of cwd:")
212+
for item in os.listdir(cwd):
213+
print(item)
214+
215+
print()
216+
cwd = os.path.join(cwd, "extension")
217+
for item in os.listdir(cwd):
218+
print(item)
219+
220+
print()
221+
cwd = os.path.join(cwd, "llm")
222+
for item in os.listdir(cwd):
223+
print(item)
224+
225+
print()
226+
cwd = os.path.join(cwd, "tokenizers")
227+
for item in os.listdir(cwd):
228+
print(item)
229+
230+
print()
231+
cwd = os.path.join(cwd, "third-party")
232+
for item in os.listdir(cwd):
233+
print(item)
234+
235+
print()
236+
cwd = os.path.join(cwd, "pcre2")
237+
for item in os.listdir(cwd):
238+
print(item)
239+
240+
print()
241+
cwd = os.path.join(cwd, "src")
242+
for item in os.listdir(cwd):
243+
print(item)
244+
245+
# # 3. Print everything in ./extension/llm/tokenizers/third-party/pcre2/src
246+
# target_path = os.path.join(cwd, "extension", "llm", "tokenizers", "third-party", "pcre2", "src")
247+
# print(f"\nContents of {target_path}:")
248+
# if os.path.exists(target_path):
249+
# for item in os.listdir(target_path):
250+
# print(item)
251+
# else:
252+
# print("Target path does not exist.")
253+
202254
parser = build_args_parser()
203255
args = parser.parse_args()
204256

0 commit comments

Comments
 (0)