4747 - name : Build packages
4848 run : make build-package
4949
50- - name : Install driver package (DEB)
50+ - name : Install driver packages (DEB)
5151 run : |
5252 set -euo pipefail
5353 shopt -s nullglob
5656 echo "No driver DEB packages produced"
5757 exit 1
5858 fi
59+ echo "Installing ${#DRIVER_PACKAGES[@]} DEB package(s):"
60+ for pkg in "${DRIVER_PACKAGES[@]}"; do
61+ echo " - $(basename "$pkg")"
62+ done
63+ # Install both runtime and dev packages
5964 sudo dpkg -i "${DRIVER_PACKAGES[@]}"
6065 sudo apt-get install -f -y
6166
67+ - name : Verify dev package installation
68+ run : |
69+ set -euo pipefail
70+ # Verify headers are installed
71+ if [ ! -f /usr/include/cassandra.h ]; then
72+ echo "ERROR: cassandra.h header not found - dev package may not be installed"
73+ exit 1
74+ fi
75+ # Verify pkg-config file is installed
76+ if ! pkg-config --exists scylla-cpp-driver; then
77+ echo "ERROR: scylla-cpp-driver.pc not found - dev package may not be installed"
78+ exit 1
79+ fi
80+ echo "Dev package verification successful"
81+
6282 - name : Build smoke-test application package
6383 run : |
6484 set -euo pipefail
@@ -113,7 +133,7 @@ jobs:
113133 - name : Build smoke-test application package
114134 run : make -C packaging/smoke-test-app package BUILD_TYPE=${{ inputs.build-type }}
115135
116- - name : Install driver package (pkg)
136+ - name : Install driver packages (pkg)
117137 run : |
118138 set -euo pipefail
119139 shopt -s nullglob
@@ -122,10 +142,30 @@ jobs:
122142 echo "No driver pkg packages produced"
123143 exit 1
124144 fi
145+ echo "Installing ${#packages[@]} pkg package(s):"
146+ for pkg in "${packages[@]}"; do
147+ echo " - $(basename "$pkg")"
148+ done
149+ # Install all packages (macOS productbuild creates a single package with components)
125150 for pkg in "${packages[@]}"; do
126151 sudo installer -pkg "$pkg" -target /
127152 done
128153
154+ - name : Verify dev package installation
155+ run : |
156+ set -euo pipefail
157+ # Verify headers are installed
158+ if [ ! -f /usr/local/include/cassandra.h ]; then
159+ echo "ERROR: cassandra.h header not found - dev package may not be installed"
160+ exit 1
161+ fi
162+ # Verify pkg-config file is installed
163+ if ! PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config --exists scylla-cpp-driver; then
164+ echo "ERROR: scylla-cpp-driver.pc not found - dev package may not be installed"
165+ exit 1
166+ fi
167+ echo "Dev package verification successful"
168+
129169 - name : Install smoke-test application package (pkg)
130170 run : make -C packaging/smoke-test-app install-pkg
131171
@@ -181,21 +221,43 @@ jobs:
181221 - name : Build packages
182222 run : make build-package
183223
184- - name : Install driver package (MSI)
224+ - name : Install driver packages (MSI)
185225 shell : pwsh
186226 run : |
187227 $ErrorActionPreference = 'Stop'
188228 $packages = Get-ChildItem build -Filter *.msi
189229 if (-not $packages) {
190230 throw "No driver MSI packages produced"
191231 }
232+ Write-Host "Installing $($packages.Count) MSI package(s):"
233+ foreach ($pkg in $packages) {
234+ Write-Host " - $($pkg.Name)"
235+ }
236+ # Install all packages (Windows WIX creates a single MSI with components)
192237 foreach ($pkg in $packages) {
193238 $process = Start-Process msiexec.exe -ArgumentList "/i `"$($pkg.FullName)`" /qn /norestart" -Wait -PassThru
194239 if ($process.ExitCode -ne 0) {
195240 throw "Failed to install driver package $($pkg.Name): exit code $($process.ExitCode)"
196241 }
197242 }
198243
244+ - name : Verify dev package installation
245+ shell : pwsh
246+ run : |
247+ $ErrorActionPreference = 'Stop'
248+ $installPath = "C:\Program Files\ScyllaDB\Scylla CPP Driver"
249+ # Verify headers are installed
250+ $headerPath = Join-Path $installPath "include\cassandra.h"
251+ if (-not (Test-Path $headerPath)) {
252+ throw "ERROR: cassandra.h header not found at $headerPath - dev package may not be installed"
253+ }
254+ # Verify pkg-config file is installed
255+ $pkgConfigPath = Join-Path $installPath "lib\pkgconfig\scylla-cpp-driver.pc"
256+ if (-not (Test-Path $pkgConfigPath)) {
257+ throw "ERROR: scylla-cpp-driver.pc not found at $pkgConfigPath - dev package may not be installed"
258+ }
259+ Write-Host "Dev package verification successful"
260+
199261 - name : Build smoke-test application package
200262 shell : pwsh
201263 run : |
0 commit comments