Skip to content

Commit 53a540d

Browse files
committed
ci: Disable parallel build on Ubuntu to prevent oom
It seems release build ooms on gcc for whatever reason.
1 parent 26d779e commit 53a540d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,22 @@ jobs:
1919
name: "Windows Latest MSVC",
2020
os: windows-latest,
2121
cc: "cl", cxx: "cl",
22-
build_params: "--config Release",
22+
build_params: "--parallel --config Release",
2323
artifact_prefix: "win"
2424
}
2525
- {
2626
name: "Ubuntu Latest GCC",
2727
os: ubuntu-latest,
2828
cc: "gcc", cxx: "g++",
29+
# Build is not parallel because gcc seem to run out of memory
2930
build_params: "",
3031
artifact_prefix: "linux"
3132
}
3233
- {
3334
name: "macOS Latest Clang",
3435
os: macos-latest,
3536
cc: "clang", cxx: "clang++",
36-
build_params: "",
37+
build_params: "--parallel",
3738
artifact_prefix: "macos",
3839
}
3940

@@ -65,7 +66,7 @@ jobs:
6566
6667
- name: Build
6768
run: |
68-
cmake --build ${{runner.workspace}}/build ${{matrix.config.build_params}} --parallel
69+
cmake --build ${{runner.workspace}}/build ${{matrix.config.build_params}}
6970
7071
- name: Run tests
7172
env:

0 commit comments

Comments
 (0)