Skip to content

Commit 8c9e31a

Browse files
lums658claude
andcommitted
Fix Linux build OOM and upgrade to gcc-13
- Limit make parallelism to -j4 to avoid OOM on GitHub runners (7GB RAM) - Upgrade Linux build from gcc-11 to gcc-13 (better C++20 support) - Matches local development environment (gcc-13) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 671ccc0 commit 8c9e31a

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/build_cmake.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Workflow to configure with cmake and build with gcc
22

3-
name: Build with gcc-11
3+
name: Build with gcc-13
44

55
on:
66
push:
@@ -31,9 +31,10 @@ jobs:
3131
| sudo tee /etc/apt/sources.list.d/oneAPI.list
3232
sudo apt-get update
3333
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install intel-oneapi-tbb-devel
34-
# Install gcc-11 (available on ubuntu-22.04+)
35-
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install gcc-11 g++-11
36-
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 90 --slave /usr/bin/g++ g++ /usr/bin/g++-11
34+
# Install gcc-13
35+
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
36+
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install gcc-13 g++-13
37+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 90 --slave /usr/bin/g++ g++ /usr/bin/g++-13
3738
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
3839
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
3940
@@ -43,12 +44,13 @@ jobs:
4344
mkdir build
4445
cd build
4546
export TBBROOT=/opt/intel/oneapi/tbb/latest
46-
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_COMPILER=g++-11 -DNWGRAPH_BUILD_DOCS=OFF -DNWGRAPH_BUILD_TESTS=ON
47+
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_COMPILER=g++-13 -DNWGRAPH_BUILD_DOCS=OFF -DNWGRAPH_BUILD_TESTS=ON
4748
4849
- name: make
4950
run: |
5051
cd NWgr/build
51-
make -j -k
52+
# Limit parallelism to avoid OOM on GitHub runners (7GB RAM)
53+
make -j4 -k
5254
5355
- name: run_test
5456
run: |

.github/workflows/build_cmake_mac.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ jobs:
4747
- name: make
4848
run: |
4949
cd NWgr/build
50-
make -j -k
50+
# Limit parallelism to avoid potential OOM issues
51+
make -j4 -k
5152
5253
- name: run_test
5354
run: |

0 commit comments

Comments
 (0)