64
64
cpack -G RPM -C ${{ inputs.build-type }}
65
65
66
66
- name : Install driver package (DEB)
67
- if : runner.os == 'Linux'
68
67
run : |
69
68
set -euo pipefail
70
69
shopt -s nullglob
@@ -77,31 +76,20 @@ jobs:
77
76
sudo apt-get install -f -y
78
77
79
78
- name : Build smoke-test application package
80
- if : runner.os == 'Linux'
81
79
run : |
82
80
set -euo pipefail
83
- cmake -S packaging/smoke-test-app -B packaging/smoke-test-app/build \
84
- -G Ninja -DCMAKE_BUILD_TYPE=${{ inputs.build-type }} \
85
- -DCMAKE_INSTALL_PREFIX=/usr
86
- cmake --build packaging/smoke-test-app/build --config ${{ inputs.build-type }}
87
- (cd packaging/smoke-test-app/build && cpack -G DEB -C ${{ inputs.build-type }})
88
- (cd packaging/smoke-test-app/build && cpack -G RPM -C ${{ inputs.build-type }})
81
+ make -C packaging/smoke-test-app package \
82
+ BUILD_TYPE=${{ inputs.build-type }} \
83
+ CMAKE_GENERATOR=Ninja \
84
+ INSTALL_PREFIX=/usr \
85
+ CPACK_GENERATORS="DEB RPM"
89
86
90
87
- name : Install smoke-test application package (DEB)
91
- if : runner.os == 'Linux'
92
88
run : |
93
89
set -euo pipefail
94
- shopt -s nullglob
95
- APP_PACKAGES=(packaging/smoke-test-app/build/*.deb)
96
- if [ "${#APP_PACKAGES[@]}" -eq 0 ]; then
97
- echo "No smoke-test DEB packages produced"
98
- exit 1
99
- fi
100
- sudo dpkg -i "${APP_PACKAGES[@]}"
101
- sudo apt-get install -f -y
90
+ make -C packaging/smoke-test-app install-deb
102
91
103
92
- name : Run smoke-test application against local Scylla
104
- if : runner.os == 'Linux'
105
93
run : |
106
94
set -euo pipefail
107
95
cleanup() {
@@ -148,7 +136,6 @@ jobs:
148
136
cpack -G DragNDrop -C ${{ inputs.build-type }}
149
137
150
138
- name : Install driver package (pkg)
151
- if : runner.os == 'macOS'
152
139
run : |
153
140
set -euo pipefail
154
141
shopt -s nullglob
@@ -162,31 +149,17 @@ jobs:
162
149
done
163
150
164
151
- name : Build smoke-test application package
165
- if : runner.os == 'macOS'
166
152
run : |
167
153
set -euo pipefail
168
- cmake -S packaging/smoke-test-app -B packaging/smoke-test-app/build \
169
- -DCMAKE_BUILD_TYPE=${{ inputs.build-type }}
170
- cmake --build packaging/smoke-test-app/build --config ${{ inputs.build-type }}
171
- (cd packaging/smoke-test-app/build && cpack -G productbuild -C ${{ inputs.build-type }})
172
- (cd packaging/smoke-test-app/build && cpack -G DragNDrop -C ${{ inputs.build-type }})
154
+ make -C packaging/smoke-test-app package \
155
+ BUILD_TYPE=${{ inputs.build-type }}
173
156
174
157
- name : Install smoke-test application package (pkg)
175
- if : runner.os == 'macOS'
176
158
run : |
177
159
set -euo pipefail
178
- shopt -s nullglob
179
- packages=(packaging/smoke-test-app/build/*.pkg)
180
- if [ "${#packages[@]}" -eq 0 ]; then
181
- echo "No smoke-test pkg packages produced"
182
- exit 1
183
- fi
184
- for pkg in "${packages[@]}"; do
185
- sudo installer -pkg "$pkg" -target /
186
- done
160
+ make -C packaging/smoke-test-app install-pkg
187
161
188
162
- name : Run smoke-test application against local Scylla
189
- if : runner.os == 'macOS'
190
163
run : |
191
164
set -euo pipefail
192
165
cleanup() {
@@ -267,7 +240,6 @@ jobs:
267
240
run : cpack -G WIX -C ${{ inputs.build-type }}
268
241
269
242
- name : Install driver package (MSI)
270
- if : runner.os == 'Windows'
271
243
shell : pwsh
272
244
run : |
273
245
$ErrorActionPreference = 'Stop'
@@ -283,7 +255,6 @@ jobs:
283
255
}
284
256
285
257
- name : Build smoke-test application package
286
- if : runner.os == 'Windows'
287
258
shell : pwsh
288
259
run : |
289
260
$ErrorActionPreference = 'Stop'
@@ -295,7 +266,6 @@ jobs:
295
266
Pop-Location
296
267
297
268
- name : Install smoke-test application package (MSI)
298
- if : runner.os == 'Windows'
299
269
shell : pwsh
300
270
run : |
301
271
$ErrorActionPreference = 'Stop'
@@ -311,7 +281,6 @@ jobs:
311
281
}
312
282
313
283
- name : Run smoke-test application against local Scylla
314
- if : runner.os == 'Windows'
315
284
shell : pwsh
316
285
run : |
317
286
$ErrorActionPreference = 'Stop'
0 commit comments