From 68b3a2818dba538b9eabda87f19bb96f0031e7f7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 5 Nov 2025 10:08:33 +0000 Subject: [PATCH 1/3] Initial plan From 1ff6612c7532f0387c62929233e1bb38b320d3d7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 5 Nov 2025 10:12:13 +0000 Subject: [PATCH 2/3] Update CI workflows to use latest GitHub Actions versions Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com> --- .github/workflows/benchmark.yml | 2 +- .github/workflows/ci.yml | 12 ++++++------ .github/workflows/memcheck.yml | 4 ++-- .github/workflows/python_binding.yml | 4 ++-- .github/workflows/release.yml | 10 +++++++--- 5 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 1e0216b1..49250d80 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -23,7 +23,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 0c03c850..56176bbe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,12 +18,12 @@ on: [push, pull_request] jobs: linux: - name: "Ubuntu Latest (GNU 9.3.0)" + name: "Ubuntu Latest" runs-on: ubuntu-latest steps: - name: Checkout id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Configuring CMake files id: building-files run: | @@ -43,12 +43,12 @@ jobs: rm -r build windows: - name: "Windows Latest (MSVC 19.29)" + name: "Windows Latest" runs-on: windows-latest steps: - name: Checkout id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Configuring CMake files id: building-files run: | @@ -67,12 +67,12 @@ jobs: ctest -j10 -C Release -T test --output-on-failure macos: - name: "macOS Latest (AppleClang 12.0)" + name: "macOS Latest" runs-on: macos-latest 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 97508bce..fcbb664d 100644 --- a/.github/workflows/memcheck.yml +++ b/.github/workflows/memcheck.yml @@ -18,12 +18,12 @@ on: [push, pull_request] jobs: linux: - name: "Ubuntu Latest (GNU 9.3.0)" + name: "Ubuntu Latest" runs-on: ubuntu-latest 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 2156d27b..b7f7a438 100644 --- a/.github/workflows/python_binding.yml +++ b/.github/workflows/python_binding.yml @@ -27,10 +27,10 @@ jobs: 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/.github/workflows/release.yml b/.github/workflows/release.yml index 64b9ef31..8cbde944 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,13 +12,17 @@ jobs: semantic-release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' - name: Run semantic-release if: github.repository == 'casbin/casbin-cpp' && github.event_name == 'push' run: | - export PATH="$(yarn global bin):$PATH" - yarn global add semantic-release@19.0.5 + npm install -g semantic-release@19.0.5 semantic-release sleep 10 env: From 62aa4c642290c82a5118991e6a71a5d8017c4579 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 5 Nov 2025 11:40:58 +0000 Subject: [PATCH 3/3] Fix build/test config mismatch in Windows and macOS jobs Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com> --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56176bbe..8cf24603 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,7 +64,7 @@ jobs: id: test-lib run: | cd build - ctest -j10 -C Release -T test --output-on-failure + ctest -j10 -C Debug -T test --output-on-failure macos: name: "macOS Latest" @@ -85,7 +85,7 @@ jobs: id: test-lib run: | cd build - ctest -j10 -C Release -T test --output-on-failure + ctest -j10 -C Debug -T test --output-on-failure - name: Cleanup id: clean-up run: |