From 5a18765d92ff0362c0b14084efe10d93ecc582a0 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Sun, 19 Jul 2026 13:19:45 +0800 Subject: [PATCH 1/5] CI: run Test C++ workflow on self-hosted runner Signed-off-by: Jinzhe Zeng --- .github/workflows/test_cc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_cc.yml b/.github/workflows/test_cc.yml index 7c5c642f01..7883534316 100644 --- a/.github/workflows/test_cc.yml +++ b/.github/workflows/test_cc.yml @@ -14,7 +14,7 @@ name: Test C++ jobs: testcc: name: Test C++ - runs-on: ubuntu-22.04 + runs-on: cpu strategy: matrix: include: From 0e7faa172d9bd4dc7d9b3a32dccc7d7b3cebc288 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Sun, 19 Jul 2026 13:28:20 +0800 Subject: [PATCH 2/5] Set up GCC Signed-off-by: Jinzhe Zeng --- .github/workflows/test_cc.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test_cc.yml b/.github/workflows/test_cc.yml index 7883534316..9ba889f959 100644 --- a/.github/workflows/test_cc.yml +++ b/.github/workflows/test_cc.yml @@ -36,6 +36,11 @@ jobs: enable_paddle: true steps: - uses: actions/checkout@v7 + - name: Set up GCC + uses: egor-tensin/setup-gcc@v2 + with: + version: latest + platform: x64 - uses: actions/setup-python@v6 with: python-version: "3.11" From 0638cbdb962e182ac462e96b2775e14578b6eac4 Mon Sep 17 00:00:00 2001 From: njzjz-bot Date: Sun, 19 Jul 2026 20:55:21 +0800 Subject: [PATCH 3/5] ci: install GCC on self-hosted runner Coding-Agent: Codex Codex-Version: codex-cli 0.144.4 Model: gpt-5.6-sol Reasoning-Effort: xhigh Signed-off-by: njzjz-bot --- .github/workflows/test_cc.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test_cc.yml b/.github/workflows/test_cc.yml index 9ba889f959..cda9240784 100644 --- a/.github/workflows/test_cc.yml +++ b/.github/workflows/test_cc.yml @@ -36,11 +36,10 @@ jobs: enable_paddle: true steps: - uses: actions/checkout@v7 - - name: Set up GCC - uses: egor-tensin/setup-gcc@v2 - with: - version: latest - platform: x64 + - name: Install GCC + run: | + sudo apt-get update + sudo apt-get install --yes build-essential - uses: actions/setup-python@v6 with: python-version: "3.11" From 05783b3885a74f7b743cf09352d5af9248c9fb69 Mon Sep 17 00:00:00 2001 From: njzjz-bot Date: Sun, 19 Jul 2026 22:58:10 +0800 Subject: [PATCH 4/5] ci: keep leak checks on hosted runners Coding-Agent: Codex Codex-Version: codex-cli 0.144.4 Model: gpt-5.6-sol Reasoning-Effort: xhigh Signed-off-by: njzjz-bot --- .github/workflows/test_cc.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_cc.yml b/.github/workflows/test_cc.yml index cda9240784..7d39ac6a0c 100644 --- a/.github/workflows/test_cc.yml +++ b/.github/workflows/test_cc.yml @@ -14,32 +14,39 @@ name: Test C++ jobs: testcc: name: Test C++ - runs-on: cpu + runs-on: ${{ matrix.runner }} strategy: matrix: + # LeakSanitizer hangs in the ARC-based CPU runner, so keep leak checks + # on the GitHub-hosted image while moving the regular tests to ARC. include: - check_memleak: true enable_tensorflow: true enable_pytorch: true enable_paddle: false + runner: ubuntu-22.04 - check_memleak: true enable_tensorflow: false enable_pytorch: false enable_paddle: true + runner: ubuntu-22.04 - check_memleak: false enable_tensorflow: true enable_pytorch: true enable_paddle: false + runner: cpu - check_memleak: false enable_tensorflow: false enable_pytorch: false enable_paddle: true + runner: cpu steps: - uses: actions/checkout@v7 - name: Install GCC run: | sudo apt-get update sudo apt-get install --yes build-essential + if: matrix.runner == 'cpu' - uses: actions/setup-python@v6 with: python-version: "3.11" From 6f4cbcfe46f40e540d57f3d617b09e0ff3f7bd4d Mon Sep 17 00:00:00 2001 From: njzjz-bot Date: Sun, 19 Jul 2026 23:14:37 +0800 Subject: [PATCH 5/5] ci: fall back to hosted runners in forks Coding-Agent: Codex Codex-Version: codex-cli 0.144.4 Model: gpt-5.6-sol Reasoning-Effort: xhigh Signed-off-by: njzjz-bot --- .github/workflows/test_cc.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test_cc.yml b/.github/workflows/test_cc.yml index 7d39ac6a0c..3d589fc3e3 100644 --- a/.github/workflows/test_cc.yml +++ b/.github/workflows/test_cc.yml @@ -14,39 +14,35 @@ name: Test C++ jobs: testcc: name: Test C++ - runs-on: ${{ matrix.runner }} + runs-on: ${{ matrix.check_memleak == false && github.repository_owner == 'deepmodeling' && 'cpu' || 'ubuntu-22.04' }} strategy: matrix: - # LeakSanitizer hangs in the ARC-based CPU runner, so keep leak checks - # on the GitHub-hosted image while moving the regular tests to ARC. + # Only regular jobs run the LAMMPS tests. Use self-hosted CPU runners + # for those jobs in deepmodeling, with a hosted fallback for forks. include: - check_memleak: true enable_tensorflow: true enable_pytorch: true enable_paddle: false - runner: ubuntu-22.04 - check_memleak: true enable_tensorflow: false enable_pytorch: false enable_paddle: true - runner: ubuntu-22.04 - check_memleak: false enable_tensorflow: true enable_pytorch: true enable_paddle: false - runner: cpu - check_memleak: false enable_tensorflow: false enable_pytorch: false enable_paddle: true - runner: cpu steps: - uses: actions/checkout@v7 - name: Install GCC run: | sudo apt-get update sudo apt-get install --yes build-essential - if: matrix.runner == 'cpu' + if: ${{ matrix.check_memleak == false && github.repository_owner == 'deepmodeling' }} - uses: actions/setup-python@v6 with: python-version: "3.11"