From 18d672f5bbcc68a12677e6cbdc6fb41c4296123a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 5 Nov 2025 11:58:58 +0000 Subject: [PATCH 1/4] Initial plan From dd6b86c007fbd197ce02af189667e98fc5b84832 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 5 Nov 2025 12:04:11 +0000 Subject: [PATCH 2/4] Update CI scripts: upgrade GitHub Actions and Python versions Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com> --- .github/workflows/benchmark.yml | 2 +- .github/workflows/ci.yml | 6 +++--- .github/workflows/memcheck.yml | 2 +- .github/workflows/python_binding.yml | 6 +++--- CMakeLists.txt | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index beb32b54..6f213566 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Configuring CMake files id: building-files run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b41d663b..112813d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Configuring CMake files id: building-files run: | @@ -52,7 +52,7 @@ jobs: steps: - name: Checkout id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Configuring CMake files id: building-files run: | @@ -76,7 +76,7 @@ jobs: steps: - name: Checkout id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Configuring CMake files id: building-files run: | diff --git a/.github/workflows/memcheck.yml b/.github/workflows/memcheck.yml index 0023c4cd..4f2d442b 100644 --- a/.github/workflows/memcheck.yml +++ b/.github/workflows/memcheck.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install requirement id: install-requirements run: | diff --git a/.github/workflows/python_binding.yml b/.github/workflows/python_binding.yml index 0450c57a..81cb2235 100644 --- a/.github/workflows/python_binding.yml +++ b/.github/workflows/python_binding.yml @@ -26,15 +26,15 @@ jobs: fail-fast: false matrix: platform: [windows-latest, macos-latest, ubuntu-latest] - python-version: ["3.8", "3.10"] + python-version: ["3.12"] runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Add requirements diff --git a/CMakeLists.txt b/CMakeLists.txt index cf6415be..1782610a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 3.19) +cmake_minimum_required(VERSION 3.25) set(CMAKE_WARN_DEPRECATED ON) set(PY_CASBIN_VERSION 1.1) From c9aa85ba19ac330738ee04cde0bf09bb54707d64 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 5 Nov 2025 12:20:19 +0000 Subject: [PATCH 3/4] Fix CMake version to 3.21 to avoid compatibility issues Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com> --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1782610a..e966e4a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 3.25) +cmake_minimum_required(VERSION 3.21) set(CMAKE_WARN_DEPRECATED ON) set(PY_CASBIN_VERSION 1.1) From 883b7a9b199c6b7384090d0ba325ea9621d5e8de Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 5 Nov 2025 12:39:46 +0000 Subject: [PATCH 4/4] Add CMake 3.25 upgrade step to CI workflows and revert CMakeLists.txt Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com> --- .github/workflows/benchmark.yml | 4 ++++ .github/workflows/ci.yml | 12 ++++++++++++ .github/workflows/memcheck.yml | 4 ++++ CMakeLists.txt | 2 +- 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 6f213566..367b35d9 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -28,6 +28,10 @@ jobs: - name: Checkout id: checkout uses: actions/checkout@v4 + - name: Setup CMake + uses: jwlawson/actions-setup-cmake@v2 + with: + cmake-version: '3.25.x' - name: Configuring CMake files id: building-files run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 112813d0..35c0fde9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,10 @@ jobs: - name: Checkout id: checkout uses: actions/checkout@v4 + - name: Setup CMake + uses: jwlawson/actions-setup-cmake@v2 + with: + cmake-version: '3.25.x' - name: Configuring CMake files id: building-files run: | @@ -53,6 +57,10 @@ jobs: - name: Checkout id: checkout uses: actions/checkout@v4 + - name: Setup CMake + uses: jwlawson/actions-setup-cmake@v2 + with: + cmake-version: '3.25.x' - name: Configuring CMake files id: building-files run: | @@ -77,6 +85,10 @@ jobs: - name: Checkout id: checkout uses: actions/checkout@v4 + - name: Setup CMake + uses: jwlawson/actions-setup-cmake@v2 + with: + cmake-version: '3.25.x' - name: Configuring CMake files id: building-files run: | diff --git a/.github/workflows/memcheck.yml b/.github/workflows/memcheck.yml index 4f2d442b..08dc2074 100644 --- a/.github/workflows/memcheck.yml +++ b/.github/workflows/memcheck.yml @@ -28,6 +28,10 @@ jobs: - name: Checkout id: checkout uses: actions/checkout@v4 + - name: Setup CMake + uses: jwlawson/actions-setup-cmake@v2 + with: + cmake-version: '3.25.x' - name: Install requirement id: install-requirements run: | diff --git a/CMakeLists.txt b/CMakeLists.txt index e966e4a4..cf6415be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.19) set(CMAKE_WARN_DEPRECATED ON) set(PY_CASBIN_VERSION 1.1)