Skip to content

Commit 0215abf

Browse files
committed
Fix GitHub Actions workflow to properly detect binary locations
1 parent 61bc830 commit 0215abf

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,16 @@ jobs:
3333
- name: Build binaries for all platforms
3434
run: python build_binary.py --all
3535

36-
- name: Verify binaries
36+
- name: Check output structure
3737
run: |
38-
ls -la releases/
39-
find releases -type f -name "pathik_bin*" | sort
38+
find . -name "pathik_bin*" | sort
39+
40+
- name: Debug pathik directory
41+
run: |
42+
echo "Contents of the bin directory:"
43+
ls -la pathik/bin/ || echo "Directory not found"
44+
echo "Searching for all binary files:"
45+
find pathik -type f -name "pathik_bin*" || echo "No binaries found"
4046
4147
- name: Create GitHub Release
4248
id: create_release
@@ -46,11 +52,11 @@ jobs:
4652
draft: false
4753
prerelease: false
4854
files: |
49-
releases/darwin_amd64/pathik_bin
50-
releases/darwin_arm64/pathik_bin
51-
releases/linux_amd64/pathik_bin
52-
releases/linux_arm64/pathik_bin
53-
releases/windows_amd64/pathik_bin.exe
55+
pathik/bin/darwin_amd64/pathik_bin
56+
pathik/bin/darwin_arm64/pathik_bin
57+
pathik/bin/linux_amd64/pathik_bin
58+
pathik/bin/linux_arm64/pathik_bin
59+
pathik/bin/windows_amd64/pathik_bin.exe
5460
5561
- name: Build Python package
5662
run: |

pathik/crawler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ def get_binary_path():
205205
except Exception as e:
206206
print(f"Warning: Error checking binary type: {e}, will try anyway")
207207
return direct_binary_path
208-
#
209208
# 3. Check in site-packages
210209
if hasattr(sys, 'prefix'):
211210
# First try platform-specific binary in site-packages

0 commit comments

Comments
 (0)