Skip to content

Commit ab8b7c1

Browse files
fix: improve artifact handling and binary naming
1 parent 698c946 commit ab8b7c1

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/CI.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,18 +169,23 @@ jobs:
169169

170170
- name: Move artifacts
171171
run: |
172-
# Move .node files to root
173-
find . -type f -name "*.node" -exec mv {} . \;
172+
echo "Debug: Showing all downloaded artifacts:"
173+
find . -type f -name "*.node" -ls
174174
175-
# Count .node files
176-
node_count=$(ls -1 *.node 2>/dev/null | wc -l)
177-
expected_count=5 # We target 5 platforms
175+
echo "\nMoving only cel-typescript binaries to root:"
176+
find . -type f -name "cel-typescript.*.node" -exec mv {} . \;
177+
178+
echo "\nBinaries in root directory:"
179+
ls -la cel-typescript.*.node
178180
179-
echo "Found $node_count .node files (expected $expected_count)"
180-
ls -la *.node
181+
# Count our binaries
182+
node_count=$(ls -1 cel-typescript.*.node 2>/dev/null | wc -l)
183+
expected_count=5 # We target 5 platforms
181184
185+
echo "\nFound $node_count cel-typescript binaries (expected $expected_count)"
186+
182187
if [ "$node_count" -ne "$expected_count" ]; then
183-
echo "Error: Expected $expected_count .node files but found $node_count"
188+
echo "Error: Expected $expected_count binaries but found $node_count"
184189
exit 1
185190
fi
186191

project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"{workspaceRoot}/cel-typescript.darwin-arm64.node",
1212
"{workspaceRoot}/cel-typescript.darwin-x64.node",
1313
"{workspaceRoot}/cel-typescript.linux-x64-gnu.node",
14+
"{workspaceRoot}/cel-typescript.linux-arm64-gnu.node",
1415
"{workspaceRoot}/cel-typescript.win32-x64-msvc.node"
1516
]
1617
},

0 commit comments

Comments
 (0)