Skip to content

Commit 9d45479

Browse files
committed
force update cmake version
1 parent fadeaa1 commit 9d45479

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_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

44
include(cmake/bob.cmake)
55
bob_begin_package()

0 commit comments

Comments
 (0)