diff --git a/.github/workflows/test_cc.yml b/.github/workflows/test_cc.yml index 7c5c642f01..3d589fc3e3 100644 --- a/.github/workflows/test_cc.yml +++ b/.github/workflows/test_cc.yml @@ -14,9 +14,11 @@ name: Test C++ jobs: testcc: name: Test C++ - runs-on: ubuntu-22.04 + runs-on: ${{ matrix.check_memleak == false && github.repository_owner == 'deepmodeling' && 'cpu' || 'ubuntu-22.04' }} strategy: matrix: + # 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 @@ -36,6 +38,11 @@ jobs: enable_paddle: true steps: - uses: actions/checkout@v7 + - name: Install GCC + run: | + sudo apt-get update + sudo apt-get install --yes build-essential + if: ${{ matrix.check_memleak == false && github.repository_owner == 'deepmodeling' }} - uses: actions/setup-python@v6 with: python-version: "3.11"