Skip to content

Commit d7bf9e3

Browse files
fix: simplify CI - copy .node binaries to src for testing
1 parent 9df17fe commit d7bf9e3

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -137,30 +137,15 @@ jobs:
137137
- name: Install dependencies
138138
run: npm install
139139

140-
- name: Setup platform packages
140+
- name: Copy binaries to src for testing
141141
run: |
142-
# Based on the target, determine which platform package we need
143-
PLATFORM=""
144-
if [[ "${{ matrix.target }}" == "aarch64-apple-darwin" ]]; then
145-
PLATFORM="darwin-arm64"
146-
elif [[ "${{ matrix.target }}" == "x86_64-apple-darwin" ]]; then
147-
PLATFORM="darwin-x64"
148-
elif [[ "${{ matrix.target }}" == "x86_64-unknown-linux-gnu" ]]; then
149-
PLATFORM="linux-x64-gnu"
150-
elif [[ "${{ matrix.target }}" == "aarch64-unknown-linux-gnu" ]]; then
151-
PLATFORM="linux-arm64-gnu"
152-
elif [[ "${{ matrix.target }}" == "x86_64-pc-windows-msvc" ]]; then
153-
PLATFORM="win32-x64-msvc"
154-
fi
142+
# Copy all .node files found in libs/core to libs/core/src
143+
echo "Copying all .node binaries to libs/core/src/"
144+
find "libs/core" -maxdepth 1 -name "*.node" -exec cp {} "libs/core/src/" \;
155145
156-
# Install the platform package locally to make it available for tests
157-
if [ -d "libs/$PLATFORM" ]; then
158-
echo "Installing platform package: libs/$PLATFORM"
159-
npm install --no-save "file:libs/$PLATFORM"
160-
else
161-
echo "Platform directory libs/$PLATFORM not found"
162-
ls -la libs
163-
fi
146+
# Show what was copied
147+
echo "Files in libs/core/src:"
148+
find "libs/core/src" -type f -name "*.node" | sort
164149
shell: bash
165150

166151
- name: Test

0 commit comments

Comments
 (0)