Skip to content

Commit 883b7a9

Browse files
Copilothsluoyz
andcommitted
Add CMake 3.25 upgrade step to CI workflows and revert CMakeLists.txt
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
1 parent c9aa85b commit 883b7a9

4 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/benchmark.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
- name: Checkout
2929
id: checkout
3030
uses: actions/checkout@v4
31+
- name: Setup CMake
32+
uses: jwlawson/actions-setup-cmake@v2
33+
with:
34+
cmake-version: '3.25.x'
3135
- name: Configuring CMake files
3236
id: building-files
3337
run: |

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
- name: Checkout
2929
id: checkout
3030
uses: actions/checkout@v4
31+
- name: Setup CMake
32+
uses: jwlawson/actions-setup-cmake@v2
33+
with:
34+
cmake-version: '3.25.x'
3135
- name: Configuring CMake files
3236
id: building-files
3337
run: |
@@ -53,6 +57,10 @@ jobs:
5357
- name: Checkout
5458
id: checkout
5559
uses: actions/checkout@v4
60+
- name: Setup CMake
61+
uses: jwlawson/actions-setup-cmake@v2
62+
with:
63+
cmake-version: '3.25.x'
5664
- name: Configuring CMake files
5765
id: building-files
5866
run: |
@@ -77,6 +85,10 @@ jobs:
7785
- name: Checkout
7886
id: checkout
7987
uses: actions/checkout@v4
88+
- name: Setup CMake
89+
uses: jwlawson/actions-setup-cmake@v2
90+
with:
91+
cmake-version: '3.25.x'
8092
- name: Configuring CMake files
8193
id: building-files
8294
run: |

.github/workflows/memcheck.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
- name: Checkout
2929
id: checkout
3030
uses: actions/checkout@v4
31+
- name: Setup CMake
32+
uses: jwlawson/actions-setup-cmake@v2
33+
with:
34+
cmake-version: '3.25.x'
3135
- name: Install requirement
3236
id: install-requirements
3337
run: |

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_minimum_required(VERSION 3.21)
15+
cmake_minimum_required(VERSION 3.19)
1616

1717
set(CMAKE_WARN_DEPRECATED ON)
1818
set(PY_CASBIN_VERSION 1.1)

0 commit comments

Comments
 (0)