Skip to content

Commit aaa132b

Browse files
authored
Update build-nabla.yml, add Smoke Build actions
1 parent 207aac0 commit aaa132b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build-nabla.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,3 +282,38 @@ jobs:
282282
key: ${{ secrets.CE_KEY }}
283283
script: |
284284
powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -NoExit -File C:\Scripts\startup-docker.ps1
285+
286+
smoke-tests:
287+
name: Build Smoke
288+
needs: build-windows
289+
runs-on: windows-2022
290+
strategy:
291+
fail-fast: false
292+
matrix:
293+
config: [Release, Debug, RelWithDebInfo]
294+
steps:
295+
- name: Checkout smoke
296+
uses: actions/checkout@v4
297+
with:
298+
fetch-depth: 1
299+
sparse-checkout: |
300+
smoke
301+
302+
- name: Download Nabla install artifact
303+
uses: actions/download-artifact@v4
304+
with:
305+
name: run-windows-17.13.6-msvc-${{ matrix.config }}-install
306+
path: smoke
307+
308+
- name: Unpack Nabla install artifact
309+
run: |
310+
tar -xf smoke\*-install.tar -C smoke
311+
if (-not (Test-Path "smoke/build-ct/install")) { throw "smoke/build-ct/install not found" }
312+
tree.com smoke /F
313+
314+
- name: Build Smoke and run tests
315+
run: |
316+
cd smoke
317+
cmake . -B out
318+
cmake --build out --config ${{ matrix.config }}
319+
ctest --test-dir out --force-new-ctest-process --output-on-failure --no-tests=error -C ${{ matrix.config }}

0 commit comments

Comments
 (0)