-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (32 loc) · 1.17 KB
/
ci-sniff.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: ci-snifftest
on: [push]
jobs:
gluecode-gnu:
runs-on: ubuntu-latest
env:
BUILD_TYPE: Release
steps:
- uses: actions/checkout@v3
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: build-essential libmpich-dev python3-dev cmake libsqlite3-dev
version: 1.1.1
- name: Build GLUECode Library
run: |
sudo apt install -y build-essential libmpich-dev python3-dev cmake libsqlite3-dev
cmake -B ./bld -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DMPIEXEC_EXECUTABLE=`which mpiexec` ./GLUECode_Library
cmake --build ./bld --config $${env.BUILD_TYPE}}
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- name: Install Python Dependencies
run: pip install -r ./GLUECode_Service/requirements.txt
- name: Serial Sniff Test
run: |
mkdir serial && cd serial
bash ../examples/sniffTest_serial.sh ../bld/tests/sniffTest_mpi
- name: MPI Sniff Test
run: |
mkdir mpi && cd mpi
bash ../examples/sniffTest_mpi.sh ../bld/tests/sniffTest_mpi