Skip to content

Commit 0a76f64

Browse files
committed
debugh
1 parent 1aa8396 commit 0a76f64

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,17 @@ jobs:
8888
with:
8989
workflow: build-lua.yml
9090
name: steamrt-lua
91-
path: aseprite-dmi/to-copy
91+
path: to-copy
9292
search_artifacts: true
9393

94+
- name: Verify Lua library download
95+
if: matrix.os == 'ubuntu-latest'
96+
run: |
97+
echo "Current directory contents:"
98+
ls -la
99+
echo "to-copy directory contents:"
100+
ls -la to-copy || echo "to-copy directory not found!"
101+
94102
- name: Run cargo tests
95103
working-directory: lib
96104
run: |

tools/build.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,27 @@
8888
elif CI and sys.platform.startswith('linux'):
8989
# For CI Linux builds, Lua library should already be in dist/unzipped
9090
lua_library = f"{library_prefix}lua5.4{library_extension}"
91-
if not os.path.exists(os.path.join(working_dir, "to-copy", lua_library)):
91+
debug_log(f"Working directory: {working_dir}")
92+
debug_log(f"Looking for Lua library: {lua_library}")
93+
94+
# List contents of working directory
95+
debug_log("Contents of working directory:")
96+
for item in os.listdir(working_dir):
97+
debug_log(f" {item}")
98+
99+
# Check to-copy directory
100+
to_copy_path = os.path.join(working_dir, "to-copy")
101+
lua_path = os.path.join(to_copy_path, lua_library)
102+
debug_log(f"Checking for Lua at: {lua_path}")
103+
104+
if os.path.exists(to_copy_path):
105+
debug_log("Contents of to-copy directory:")
106+
for item in os.listdir(to_copy_path):
107+
debug_log(f" {item}")
108+
else:
109+
debug_log("to-copy directory does not exist!")
110+
111+
if not os.path.exists(lua_path):
92112
print("Error: Steam Runtime Lua library not found")
93113
sys.exit(1)
94114
elif not CI and sys.platform.startswith('linux'):

0 commit comments

Comments
 (0)