From a51c096e4344411c9b970dee597aa26aa54886dc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 9 Nov 2025 17:56:43 +0000 Subject: [PATCH 1/6] Initial plan From bd34fb578b6d12038373ffc67cd0736e8bbccb1e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 9 Nov 2025 17:59:58 +0000 Subject: [PATCH 2/6] Add GitHub Actions workflow and update README badge Co-authored-by: chenpeizhi <8114085+chenpeizhi@users.noreply.github.com> --- .github/workflows/ci.yml | 46 ++++++++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2357039 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,46 @@ +name: CI + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + test_debug: + runs-on: ubuntu-latest + container: + image: tschijnmo/drudge:base + + steps: + - name: Checkout repository with submodules + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Build and test (debug) + run: | + mkdir cmake-test-debug + cd cmake-test-debug + cmake -DCMAKE_BUILD_TYPE=debug .. + make + ./test/testmain + + test_release: + runs-on: ubuntu-latest + container: + image: tschijnmo/drudge:base + + steps: + - name: Checkout repository with submodules + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Build and test (release) + run: | + mkdir cmake-test-release + cd cmake-test-release + cmake -DCMAKE_BUILD_TYPE=release .. + make + ./test/testmain diff --git a/README.md b/README.md index bbb898b..403301a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://circleci.com/gh/tschijnmo/cpypp.svg?style=shield)](https://circleci.com/gh/tschijnmo/cpypp) +[![CI](https://github.com/DrudgeCAS/cpypp/actions/workflows/ci.yml/badge.svg)](https://github.com/DrudgeCAS/cpypp/actions/workflows/ci.yml) # cpypp From 865d4f6104984d5ab060123fc10662011b39de19 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 9 Nov 2025 18:00:24 +0000 Subject: [PATCH 3/6] Remove CircleCI configuration Co-authored-by: chenpeizhi <8114085+chenpeizhi@users.noreply.github.com> --- .circleci/config.yml | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 8b26882..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,33 +0,0 @@ -version: 2 -jobs: - test_debug: - docker: - - image: tschijnmo/drudge:base - steps: - - run: | - git clone --recurse-submodules https://github.com/tschijnmo/cpypp.git - mkdir cmake-test-debug - cd cmake-test-debug - cmake -DCMAKE_BUILD_TYPE=debug ../cpypp - make - ./test/testmain - - test_release: - docker: - - image: tschijnmo/drudge:base - steps: - - run: | - git clone --recurse-submodules https://github.com/tschijnmo/cpypp.git - mkdir cmake-test-release - cd cmake-test-release - cmake -DCMAKE_BUILD_TYPE=release ../cpypp - make - ./test/testmain - -workflows: - version: 2 - tests: - jobs: - - test_debug - - test_release - From 54b08a3b61738f8ea5bad5d1cc6c06f3f8da8363 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 9 Nov 2025 18:02:07 +0000 Subject: [PATCH 4/6] Add explicit permissions to GitHub Actions workflow Co-authored-by: chenpeizhi <8114085+chenpeizhi@users.noreply.github.com> --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2357039..e141e79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,8 @@ on: jobs: test_debug: runs-on: ubuntu-latest + permissions: + contents: read container: image: tschijnmo/drudge:base @@ -28,6 +30,8 @@ jobs: test_release: runs-on: ubuntu-latest + permissions: + contents: read container: image: tschijnmo/drudge:base From 9869d9b65f46e2566b9b982107da91624524f29c Mon Sep 17 00:00:00 2001 From: Guo Chen Date: Sun, 9 Nov 2025 15:00:45 -0600 Subject: [PATCH 5/6] Update CI triggers --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e141e79..13d76ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,13 @@ name: CI on: push: - branches: [ main, master ] + branches: + - master + - 'release/*' pull_request: - branches: [ main, master ] + branches: + - master + workflow_dispatch: jobs: test_debug: From 9e006bba4a8caad1fd3dcfc1fd0a9d658ae989de Mon Sep 17 00:00:00 2001 From: Guo Chen Date: Sun, 9 Nov 2025 15:01:31 -0600 Subject: [PATCH 6/6] Remove the ycm configuration file --- .ycm_extra_conf.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 .ycm_extra_conf.py diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py deleted file mode 100644 index 4867739..0000000 --- a/.ycm_extra_conf.py +++ /dev/null @@ -1,18 +0,0 @@ -import os.path -import subprocess - -def FlagsForFile(filename, **kwargs): - flags = ['-std=c++14', '-I/usr/local/include', '-I.'] - - # Call the config script to get the directories for the Python3 interpreter - # in PATH. - py_includes = subprocess.check_output( - ['python3-config', '--includes'] - ).decode('utf-8').split() - flags.extend(py_includes) - - proj_dir = os.path.dirname(os.path.realpath(__file__)) - proj_include = os.path.join(proj_dir, 'include') - flags.append('-I' + proj_include) - - return {'flags': flags}