File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Update CMAKE Version
2+ on :
3+ pull_request :
4+
5+ jobs :
6+ checkVersion :
7+ runs-on : ubuntu-latest
8+
9+ defaults :
10+ run :
11+ shell : bash
12+
13+ steps :
14+
15+ - name : Check out master
16+ uses : actions/checkout@v4
17+ with :
18+ path : master
19+ ref : ${{ github.base_ref }}
20+
21+ - name : Check out current
22+ uses : actions/checkout@v4
23+ with :
24+ path : branch
25+
26+ - name : CMake Version Has Updated
27+ run : |
28+ masterVersion=$(grep -oP 'project\(\s*[\w-]+\s+VERSION\s+\K[0-9]+\.[0-9]+\.[0-9]+' master/CMakeLists.txt)
29+ branchVersion=$(grep -oP 'project\(\s*[\w-]+\s+VERSION\s+\K[0-9]+\.[0-9]+\.[0-9]+' branch/CMakeLists.txt)
30+ [ "$masterVersion" != "$branchVersion" ]
31+
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.19 )
2- project (polyMPO VERSION 0.1 .0 LANGUAGES CXX Fortran )
2+ project (polyMPO VERSION 0.2 .0 LANGUAGES CXX Fortran )
33
44include (cmake/bob.cmake )
55bob_begin_package ()
You can’t perform that action at this time.
0 commit comments