@@ -131,16 +131,21 @@ jobs:
131131 bundleDir="sdk-out/livekit-sdk-${{ matrix.name }}-${{ steps.version.outputs.version }}"
132132 mkdir -p "$bundleDir/lib"
133133 mkdir -p "$bundleDir/include"
134- mkdir -p "$bundleDir/bin "
134+ mkdir -p "$bundleDir/lib/cmake/LiveKit "
135135
136- # Copy files
136+ # Copy libs + headers (SDK)
137137 cp -r build-release/lib/* "$bundleDir/lib/" 2>/dev/null || true
138138 cp -r build-release/include/* "$bundleDir/include/" 2>/dev/null || true
139- cp -r build-release/bin/* "$bundleDir/bin/" 2>/dev/null || true
140-
139+
140+ # Copy generated CMake package files
141+ cp -f build-release/LiveKitConfig.cmake "$bundleDir/lib/cmake/LiveKit/" || true
142+ cp -f build-release/LiveKitConfigVersion.cmake "$bundleDir/lib/cmake/LiveKit/" || true
143+ cp -f build-release/LiveKitTargets.cmake "$bundleDir/lib/cmake/LiveKit/" || true
144+ cp -f build-release/LiveKitTargets-*.cmake "$bundleDir/lib/cmake/LiveKit/" 2>/dev/null || true
145+
141146 # List bundle contents
142147 echo "Bundle contents:"
143- find "$bundleDir" -type f | head -50
148+ find "$bundleDir" -type f | head -80
144149
145150 # ---------- Build + Bundle (Windows) ----------
146151 - name : Build and Bundle (Windows)
@@ -152,15 +157,20 @@ jobs:
152157
153158 # Create bundle directory with version in name
154159 $bundleDir = "sdk-out/livekit-sdk-${{ matrix.name }}-${{ steps.version.outputs.version }}"
155- New-Item -ItemType Directory -Force -Path $bundleDir
156- New-Item -ItemType Directory -Force -Path "$bundleDir/lib"
157- New-Item -ItemType Directory -Force -Path "$bundleDir/include"
158- New-Item -ItemType Directory -Force -Path "$bundleDir/bin"
160+ New-Item -ItemType Directory -Force -Path $bundleDir | Out-Null
161+ New-Item -ItemType Directory -Force -Path "$bundleDir/lib" | Out-Null
162+ New-Item -ItemType Directory -Force -Path "$bundleDir/include" | Out-Null
163+ New-Item -ItemType Directory -Force -Path "$bundleDir/lib/cmake/LiveKit" | Out-Null
159164
160- # Copy files
165+ # Copy libs + headers (SDK)
161166 Copy-Item -Recurse -Force "build-release/lib/*" "$bundleDir/lib/"
162167 Copy-Item -Recurse -Force "build-release/include/*" "$bundleDir/include/"
163- Copy-Item -Recurse -Force "build-release/bin/*" "$bundleDir/bin/"
168+
169+ # Copy generated CMake package files (best-effort)
170+ Copy-Item -Force "build-release/LiveKitConfig.cmake" "$bundleDir/lib/cmake/LiveKit/" -ErrorAction SilentlyContinue
171+ Copy-Item -Force "build-release/LiveKitConfigVersion.cmake" "$bundleDir/lib/cmake/LiveKit/" -ErrorAction SilentlyContinue
172+ Copy-Item -Force "build-release/LiveKitTargets.cmake" "$bundleDir/lib/cmake/LiveKit/" -ErrorAction SilentlyContinue
173+ Copy-Item -Force "build-release/LiveKitTargets-*.cmake" "$bundleDir/lib/cmake/LiveKit/" -ErrorAction SilentlyContinue
164174
165175 # ---------- Upload artifact (raw directory, no pre-compression) ----------
166176 - name : Upload build artifact
0 commit comments