Skip to content

Commit 96f15a9

Browse files
authored
Merge pull request #13319 from KratosMultiphysics/ci/rocky
[CI] Fix Rocky
2 parents 27bf3ea + d6b1eaf commit 96f15a9

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

  • .github/workflows
  • scripts/docker_files/docker_file_ci_rockylinux8

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
export CC=/usr/bin/clang-14
100100
export CXX=/usr/bin/clang++-14
101101
export KRATOS_CMAKE_CXX_FLAGS="-Werror -Wno-deprecated-declarations"
102-
export KRATOS_CMAKE_OPTIONS_FLAGS="-DMMG_ROOT=/external_libraries/mmg/mmg_5_5_1/"
102+
export KRATOS_CMAKE_OPTIONS_FLAGS="-DMMG_ROOT=/external_libraries/mmg/mmg_5_5_1/"
103103
else
104104
echo 'Unsupported compiler: ${{ matrix.compiler }}'
105105
exit 1
@@ -311,7 +311,7 @@ jobs:
311311
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
312312

313313
container:
314-
image: kratosmultiphysics/kratos-image-ci-rockylinux-8:latest
314+
image: kratosmultiphysics/kratos-image-ci-rocky8:latest
315315
options: --user 1001
316316

317317
steps:
@@ -326,18 +326,21 @@ jobs:
326326

327327
- name: Build
328328
run: |
329+
if [ -f /etc/bashrc ]; then source /etc/bashrc; fi
329330
export KRATOS_CMAKE_CXX_FLAGS="-Werror -Wno-deprecated-declarations -Wignored-qualifiers"
330331
cp .github/workflows/rocky_configure.sh rocky_configure.sh
331332
bash rocky_configure.sh
332333
333334
- name: Running C++ tests
334335
run: |
336+
if [ -f /etc/bashrc ]; then source /etc/bashrc; fi
335337
export PYTHONPATH=${GITHUB_WORKSPACE}/bin/Custom
336338
export LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/bin/Custom/libs
337339
python3.8 kratos/python_scripts/testing/run_cpp_tests.py
338340
339341
- name: Running python tests
340342
run: |
343+
if [ -f /etc/bashrc ]; then source /etc/bashrc; fi
341344
export PYTHONPATH=${GITHUB_WORKSPACE}/bin/Custom
342345
export LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/bin/Custom/libs
343346
python3.8 kratos/python_scripts/testing/run_python_tests.py -l nightly -c python3.8

scripts/docker_files/docker_file_ci_rockylinux8/DockerFile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ENV HOME /root
88
RUN dnf -y install gcc-toolset-11
99

1010
# Enable devtools 11 every time a shell is started
11+
# TODO: /etc/bashrc is never executed so this line does not fulfill its purpose => fix it.
1112
RUN echo "source /opt/rh/gcc-toolset-11/enable" >> /etc/bashrc
1213

1314
# Install python3.8.10

0 commit comments

Comments
 (0)