Update utils module #109
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |