-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (35 loc) · 1.34 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
name: CMake
on: [push]
jobs:
# Build pumgen in Release and Debug version
build-pumgen:
runs-on: ubuntu-latest
strategy:
matrix:
build_type: ["Release", "Debug"]
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -qq g++ openmpi-bin openmpi-common libopenmpi-dev hdf5-tools libhdf5-openmpi-103 libhdf5-openmpi-dev libnetcdf-dev
- name: Configure PUMGen
working-directory: ${{ github.workspace }}
run: |
git submodule update --init --recursive
mkdir build_${{ matrix.build_type}} && cd build_${{ matrix.build_type}}
cmake .. -DCMAKE_PREFIX_PATH=${{ runner.workspace }}/opt -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build
working-directory: ${{ github.workspace }}/build_${{ matrix.build_type }}
run: cmake --build .
clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: clang-format
run: |
sudo apt-get update
sudo apt-get install -qq python3 python3-pip
pip3 install clang-format==19.1.0
git submodule update --init
./submodules/run-clang-format/run-clang-format.py --clang-format-executable clang-format --exclude src/third_party -r src