Skip to content

Commit 1ef648c

Browse files
committed
fix: handle multiple possible binary output paths in release workflow
1 parent 4d528b3 commit 1ef648c

File tree

1 file changed

+36
-4
lines changed

1 file changed

+36
-4
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,24 @@ jobs:
5050

5151
- name: Strip and prepare binary
5252
run: |
53-
strip artifacts/subtree
54-
mv artifacts/subtree subtree_linux
53+
echo "Checking artifacts directory structure:"
54+
find artifacts -type f
55+
56+
# Handle both possible output locations
57+
if [ -f "artifacts/linux_amd64/subtree" ]; then
58+
echo "Found binary at artifacts/linux_amd64/subtree"
59+
file artifacts/linux_amd64/subtree
60+
strip artifacts/linux_amd64/subtree
61+
mv artifacts/linux_amd64/subtree subtree_linux
62+
elif [ -f "artifacts/subtree" ]; then
63+
echo "Found binary at artifacts/subtree"
64+
file artifacts/subtree
65+
strip artifacts/subtree
66+
mv artifacts/subtree subtree_linux
67+
else
68+
echo "ERROR: Binary not found in expected locations"
69+
exit 1
70+
fi
5571
5672
- name: Upload AMD64 Artifact
5773
uses: actions/upload-artifact@v4
@@ -83,8 +99,24 @@ jobs:
8399

84100
- name: Strip and prepare binary
85101
run: |
86-
aarch64-linux-gnu-strip artifacts/subtree
87-
mv artifacts/subtree subtree_linux_aarch64
102+
echo "Checking artifacts directory structure:"
103+
find artifacts -type f
104+
105+
# Handle both possible output locations
106+
if [ -f "artifacts/linux_arm64/subtree" ]; then
107+
echo "Found binary at artifacts/linux_arm64/subtree"
108+
file artifacts/linux_arm64/subtree
109+
strip artifacts/linux_arm64/subtree
110+
mv artifacts/linux_arm64/subtree subtree_linux_aarch64
111+
elif [ -f "artifacts/subtree" ]; then
112+
echo "Found binary at artifacts/subtree"
113+
file artifacts/subtree
114+
strip artifacts/subtree
115+
mv artifacts/subtree subtree_linux_aarch64
116+
else
117+
echo "ERROR: Binary not found in expected locations"
118+
exit 1
119+
fi
88120
89121
- name: Upload ARM64 Artifact
90122
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)