-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (32 loc) · 956 Bytes
/
linux.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
34
35
36
37
38
39
40
name: linux
on:
# push:
# branches: [ stable ]
pull_request:
branches: [ stable, develop ]
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
PDC:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Dependencies
run: .github/workflows/dependencies-linux.sh
- name: Build PDC
# working-directory: ./src
run: |
mkdir build && cd build
cmake ../ -DBUILD_MPI_TESTING=ON -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON -DPDC_ENABLE_MPI=ON -DCMAKE_C_COMPILER=mpicc
make -j2
# - name: Debug test PDC
# working-directory: ./src/build/bin
# run: |
# mpirun -n 1 ./pdc_server.exe &
# sleep 1
# mpirun -n 1 ./pdc_init
# mpirun -n 1 ./close_server
- name: Test PDC
working-directory: build
run: ctest -L serial