Skip to content

Commit 0e2224d

Browse files
committed
Minor: Add workflow for smoke test
1 parent 017ef16 commit 0e2224d

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/smoke-test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: smoke-test
2+
on:
3+
push:
4+
branches: [master]
5+
jobs:
6+
smoke-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v5
11+
12+
- name: Configure test parameters
13+
run: |
14+
sed -i 's/TIME_WINDOW_SIZE = 0.01/TIME_WINDOW_SIZE = 0.2/' src/constants.hpp
15+
16+
- name: Build and install library
17+
run: |
18+
mkdir build && cd build
19+
cmake .. -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install
20+
make
21+
cmake --install . --prefix ${{github.workspace}}/install
22+
23+
- name: Build solverdummy
24+
run: |
25+
cd test
26+
mkdir build && cd build
27+
cmake .. -DCMAKE_PREFIX_PATH=${{ github.workspace }}/install
28+
make
29+
30+
- name: Run smoke test
31+
run: |
32+
cd tests/build
33+
./solverdummy Fluid &
34+
./solverdummy Solid

0 commit comments

Comments
 (0)