mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-01 16:43:03 -06:00
* Update opm-common submodule and use branch development https://github.com/CeetronSolutions/opm-common/tree/development * Add cmake-format of ThirdParty/custom-opm-common/CMakeLists.txt * Add boost-test * Update generated files and simplify CMake configuration Add -D_USE_MATH_DEFINES to CMake to avoid multiple local defines Introduce flag CREATE_OPM_COMMON_KEYWORDS used to generate C++ files JSON files. This enables use also in MSVC. Remove obsolete direct include of source files. * Update generated ESMRY test file There was a invalid extra : postfix for some keywords like NEWTON and other N* keywords. When creating ESRMY using updated opm-common fix this issue. * Update URL for custom-opm-common
45 lines
1.6 KiB
YAML
45 lines
1.6 KiB
YAML
name: cmake-format
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
cmake-format-job:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Install cmakelang for cmake-format
|
|
run: |
|
|
python3 -m pip install --user cmakelang
|
|
- uses: actions/checkout@v4
|
|
- name: Check format - ApplicationLibCode
|
|
run: |
|
|
~/.local/bin/cmake-format -c ${{ github.workspace }}/cmake/cmake-format.py -i CMakeLists.txt
|
|
|
|
cd ApplicationLibCode
|
|
find -name CMake*.txt | xargs ~/.local/bin/cmake-format -c ${{ github.workspace }}/cmake/cmake-format.py -i
|
|
find -name CMake*.cmake | xargs ~/.local/bin/cmake-format -c ${{ github.workspace }}/cmake/cmake-format.py -i
|
|
cd ..
|
|
|
|
cd ApplicationExeCode
|
|
find -name CMake*.txt | xargs ~/.local/bin/cmake-format -c ${{ github.workspace }}/cmake/cmake-format.py -i
|
|
cd ..
|
|
|
|
cd Octave
|
|
find -name CMake*.txt | xargs ~/.local/bin/cmake-format -c ${{ github.workspace }}/cmake/cmake-format.py -i
|
|
cd ..
|
|
|
|
cd Fwk/AppFwk
|
|
find -name CMake*.txt | xargs ~/.local/bin/cmake-format -c ${{ github.workspace }}/cmake/cmake-format.py -i
|
|
cd ..
|
|
cd ..
|
|
|
|
~/.local/bin/cmake-format -c ${{ github.workspace }}/cmake/cmake-format.py -i ThirdParty/custom-opm-common/CMakeLists.txt
|
|
|
|
git diff
|
|
- uses: peter-evans/create-pull-request@v7
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
commit-message: "Fixes by cmake-format"
|
|
title: "Fixes by cmake-format"
|
|
branch: cmake-format-patches
|
|
branch-suffix: random
|