-
Notifications
You must be signed in to change notification settings - Fork 14
49 lines (38 loc) · 1.21 KB
/
CMake.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
41
42
43
44
45
46
47
48
49
name: C++ Build on Linux
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Update
run: sudo apt-get update
- name: Install Requried Libs for FERS
run: sudo apt-get install libboost-all-dev libfftw3-dev libhdf5-dev libhdf5-serial-dev build-essential cmake cmake-qt-gui python-all-dev libtinyxml-dev
- name: Generate FERS
run: |
ls -a
mkdir build
cd build
pwd # This will print the current working directory after cd
ls -a
cmake -S .. -B . -D FERS_LIB_HDF5="/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so" -D FERS_LIB_HDF5_HL="/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.so" -D CMAKE_CXX_FLAGS="-I/usr/include/hdf5/serial/"
- name: Build FERS
run: |
cd build
make
- name: Install Requried Libs for validator
run: sudo apt install libxerces-c-dev
- name: Generate Validator
run: |
cd config_validators
mkdir build
cd build
cmake ..
- name: Build Validator
run: |
cd build
make