@@ -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