Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(actions): trying to debug cli binaries copy #6556

Merged
merged 2 commits into from Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/publish-node.yml
Expand Up @@ -448,6 +448,7 @@ jobs:
shell: bash
run: |
./scripts/cli_artifacts.sh
ls -R ./artifacts_cli
npm run artifacts

- name: List npm
Expand Down
6 changes: 3 additions & 3 deletions scripts/cli_artifacts.sh
@@ -1,6 +1,6 @@
#!/bin/sh

mkdir -p artifacts_cli
mkdir -p ./artifacts_cli
# Naive substitution to napi artifacts for the cli binary.
for filename in artifacts/*/*.node
do
Expand All @@ -10,10 +10,10 @@ do

if [ -f "$CLI_BINARY_PATH" ]; then
chmod +x $CLI_BINARY_PATH
cp $CLI_BINARY_PATH artifacts_cli/$BINDING_ABI
cp -v $CLI_BINARY_PATH ./artifacts_cli/$BINDING_ABI
mv $CLI_BINARY_PATH ./scripts/npm/$BINDING_ABI
elif [ -f "$CLI_BINARY_PATH.exe" ]; then
cp $CLI_BINARY_PATH.exe artifacts_cli/$BINDING_ABI
cp -v $CLI_BINARY_PATH.exe ./artifacts_cli/$BINDING_ABI
mv $CLI_BINARY_PATH.exe ./scripts/npm/$BINDING_ABI
fi
done