Skip to content

Commit

Permalink
Enable parallel builds in all CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed Feb 8, 2025
1 parent 5b1617c commit 5080143
Show file tree
Hide file tree
Showing 16 changed files with 51 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/basictest_intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
- name: install oneAPI runtime libs
run: sudo apt install intel-oneapi-runtime-libs

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

#NB: We don't test matplotlib import here in the next step, since we want
#to make sure that our CTest infrastructure correctly avoids problems from
#"building font cache" printouts on first imports.
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/basictest_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
with:
python-version: 3.11

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: Monolithic pip install of repo
shell: cmd
run: python3 -m pip install --config-settings=cmake.define.NCRYSTAL_WINEXPORTALL=${{ matrix.winexportall }} .\src\
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/basictest_wincmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
with:
python-version: 3.11

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

#NB: We don't test matplotlib import here in the next step, since we want
#to make sure that our CTest infrastructure correctly avoids problems from
#"building font cache" printouts on first imports.
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/c_cpp_standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ jobs:
with:
path: src

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: Install Ninja (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install ninja-build


- name: Install Ninja (macOS)
if: runner.os == 'macOS'
run: brew install ninja
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/condatest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
( which nctool >/dev/null; if [ $? == 0 ]; then exit 1; else exit 0; fi )
( which ncrystal-config >/dev/null; if [ $? == 0 ]; then exit 1; else exit 0; fi )
- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: Install NCrystal
run: |
python3 -m pip install ./src_co/ncrystal_core -vv --no-deps
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
with:
path: src

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: Install cppcheck
run: pip install cppcheck

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ jobs:
with:
python-version: ${{ matrix.python }}

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: Pip install dependencies
#Pin ASE due to https://gitlab.com/ase/ase/-/issues/1597 breaking 3.24
run: python3 -m pip install -r ./src/devel/reqs/requirements_all_and_devel.txt

- name: Configure CMake
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ncdevtoolchecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
with:
python-version: 3.13

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: pip install deps
run: pip install -r ./devel/reqs/requirements_devel.txt

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/openmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
ref: ${{ matrix.openmcbranch }}
path: ./src_openmc

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: Install ncrystal-core
run: pip install ./src/ncrystal_core

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
with:
path: src

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: CMake cfg NCrystal
run: >
cmake -S ./src -B ./build -DCMAKE_INSTALL_PREFIX=./install
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/plugindb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
with:
python-version: 3.12

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: Build ncrystal-core
run: pipx run build ./src/ncrystal_core --wheel --outdir ./dist

Expand Down Expand Up @@ -108,6 +111,9 @@ jobs:
- name: Check python version
run: python --version

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: Pip install pyyaml for ncdevtool
run: pip install pyyaml

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
with:
python-version: 3.12

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: Pip install ncrystal-core
run: pip install ./src/ncrystal_core

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pyplugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- name: Check python version
run: python --version

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: Install ncrystal_core
run: pip install ./src/ncrystal_core

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/simplebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
with:
python-version: ${{ matrix.python }}

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: pip install deps
run: python -mpip install -r ./devel/reqs/requirements_all_and_devel.txt

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/systemwideinstall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
with:
path: src

- name: Enable parallel cmake
run: python ./src/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: Configure
run: cmake -S ./src/ncrystal_core -B ./build -DCMAKE_BUILD_TYPE=Release

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:
python-version: ${{ matrix.python }}
allow-prereleases: true #Needed (Aug 2024) for Python 3.13.

- name: Enable parallel cmake
run: python ./src_ncrystal/devel/bin/ncdevtool nprocs --enable-github-parallel

- name: Pip install ncrystal-core
run: python3 -m pip install ./src_ncrystal/ncrystal_core

Expand Down

0 comments on commit 5080143

Please sign in to comment.