Skip to content

Commit

Permalink
CI IFPEN : update IFPEN 2018b workflows to use new images (arcanefram…
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricga91 authored Aug 27, 2024
1 parent 47ce292 commit d0adc15
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 69 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/ifpen_el7_foss-2018b.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
CCACHE_DIR: '/__w/framework/framework/ccache'
CCACHE_MAXSIZE: 5G
# CMake
CM_BUILD_OPTS: "-j2"
CM_BUILD_OPTS: "-j4"
CM_BUILD_TYPE: Release
CM_CCACHE_OPTS: "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
# CTest
Expand Down Expand Up @@ -74,6 +74,14 @@ jobs:
path: ${{ env.SOURCE_DIR }}
submodules: true

- name: Modules information
id: modules_information
if: |
(success() || failure()) &&
steps.checkout.outcome == 'success'
shell: bash
run: module --terse list 2>&1 | sort

- name: Configure
id: configure
if: |
Expand Down Expand Up @@ -113,14 +121,11 @@ jobs:
steps.install.outcome == 'success'
shell: bash
run: |
osdir=centos_`lsb_release -r | awk -F ":" '{print $2}' | awk -F "." '{print $1}' | tr -d '\t'`
mkdir -p ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}
export LD_LIBRARY_PATH="${{ env.INSTALL_DIR }}/lib:${LD_LIBRARY_PATH}"
# Copy libraries
while read line; do \cp -avn ${line} ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.; if [ -L ${line} ]; then \cp -avn `readlink -f ${line}` ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.; fi; done < <(ldd ${{ env.INSTALL_DIR }}/bin/alien* ${{ env.INSTALL_DIR }}/bin/gtest* ${{ env.INSTALL_DIR }}/lib/*.so ${{ env.INSTALL_DIR }}/lib/arcane_driver | awk 'NF == 4 { print $3 }' | grep -v -e "^/lib64/" -e "^${EBROOTOPENMPI}" -e "^${EBROOTUDUNITS}" -e "^${EBROOTMONO}" -e "^${EBROOTCMAKE}" -e "^${EBROOTDOTNETMINSDK}" -e "^/__w/")
# Copy googletest
\rm -vf ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}//libgtest.so
\cp -avf /soft/irsrvsoft1/expl/eb/r11/${osdir}/easybuild/software/Compiler/GCCcore/7.3.0/googletest/1.10.0/lib64/*.so ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.
cd ${{ env.BUILD_DIR }}
echo '--'
cat /scripts/copyextlib_github.sh
echo '--'
bash /scripts/copyextlib_github.sh
- name: Tar build artifact
shell: bash
Expand Down Expand Up @@ -150,7 +155,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 120
container:
image: ghcr.io/arcaneframework/arcane-ifpen-devenv-foss-2018b:el7-rt
image: ghcr.io/arcaneframework/arcane-ifpen-devenv-foss-2018b-rt:el7
#options: --user root # Avoid to match github UID in container.
strategy:
fail-fast: false
Expand Down
28 changes: 15 additions & 13 deletions .github/workflows/ifpen_el7_gimkl-2018b.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
CCACHE_DIR: '/__w/framework/framework/ccache'
CCACHE_MAXSIZE: 5G
# CMake
CM_BUILD_OPTS: "-j2"
CM_BUILD_OPTS: "-j4"
CM_BUILD_TYPE: Release
CM_CCACHE_OPTS: "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
# CTest
Expand Down Expand Up @@ -78,6 +78,14 @@ jobs:
path: ${{ env.SOURCE_DIR }}
submodules: true

- name: Modules information
id: modules_information
if: |
(success() || failure()) &&
steps.checkout.outcome == 'success'
shell: bash
run: module --terse list 2>&1 | sort

- name: Configure
id: configure
if: |
Expand Down Expand Up @@ -117,17 +125,11 @@ jobs:
steps.install.outcome == 'success'
shell: bash
run: |
osdir=centos_`lsb_release -r | awk -F ":" '{print $2}' | awk -F "." '{print $1}' | tr -d '\t'`
mkdir -p ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}
export LD_LIBRARY_PATH="${{ env.INSTALL_DIR }}/lib:${LD_LIBRARY_PATH}"
# Copy libraries
while read line; do \cp -avn ${line} ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.; if [ -L ${line} ]; then \cp -avn `readlink -f ${line}` ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.; fi; done < <(ldd ${{ env.INSTALL_DIR }}/bin/alien* ${{ env.INSTALL_DIR }}/bin/gtest* ${{ env.INSTALL_DIR }}/lib/*.so ${{ env.INSTALL_DIR }}/lib/arcane_driver | awk 'NF == 4 { print $3 }' | grep -v -e "^/lib64/" -e "^${EBROOTIMPI}" -e "^${EBROOTUDUNITS}" -e "^${EBROOTMONO}" -e "^${EBROOTCMAKE}" -e "^${EBROOTDOTNETMINSDK}" -e "^/__w/")
# Copy imkl libaries
\cp -avf /soft/irsrvsoft1/expl/eb/r11/${osdir}/easybuild/software/MPI/GCC/7.3.0-2.30/impi/2018.3.222/imkl/2018.3.222/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64_lin/libmkl_avx512.so ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.
\cp -avf /soft/irsrvsoft1/expl/eb/r11/${osdir}/easybuild/software/MPI/GCC/7.3.0-2.30/impi/2018.3.222/imkl/2018.3.222/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64_lin/libmkl_def.so ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.
# Copy googletest
\rm -vf ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}//libgtest.so
\cp -avf /soft/irsrvsoft1/expl/eb/r11/${osdir}/easybuild/software/Compiler/GCCcore/7.3.0/googletest/1.10.0/lib64/*.so ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.
cd ${{ env.BUILD_DIR }}
echo '--'
cat /scripts/copyextlib_github.sh
echo '--'
bash /scripts/copyextlib_github.sh
- name: Tar build artifact
shell: bash
Expand Down Expand Up @@ -157,7 +159,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 120
container:
image: ghcr.io/arcaneframework/arcane-ifpen-devenv-gimkl-2018b:el7-rt
image: ghcr.io/arcaneframework/arcane-ifpen-devenv-gimkl-2018b-rt:el7
#options: --user root # Avoid to match github UID in container.
strategy:
fail-fast: false
Expand Down
25 changes: 15 additions & 10 deletions .github/workflows/ifpen_el8_foss-2018b.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
CCACHE_DIR: '/__w/framework/framework/ccache'
CCACHE_MAXSIZE: 5G
# CMake
CM_BUILD_OPTS: "-j2"
CM_BUILD_OPTS: "-j4"
CM_BUILD_TYPE: Release
CM_CCACHE_OPTS: "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
# CTest
Expand Down Expand Up @@ -74,6 +74,14 @@ jobs:
path: ${{ env.SOURCE_DIR }}
submodules: true

- name: Modules information
id: modules_information
if: |
(success() || failure()) &&
steps.checkout.outcome == 'success'
shell: bash
run: module --terse list 2>&1 | sort

- name: Configure
id: configure
if: |
Expand Down Expand Up @@ -113,14 +121,11 @@ jobs:
steps.install.outcome == 'success'
shell: bash
run: |
osdir=centos_`lsb_release -r | awk -F ":" '{print $2}' | awk -F "." '{print $1}' | tr -d '\t'`
mkdir -p ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}
export LD_LIBRARY_PATH="${{ env.INSTALL_DIR }}/lib:${LD_LIBRARY_PATH}"
# Copy libraries
while read line; do \cp -avn ${line} ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.; if [ -L ${line} ]; then \cp -avn `readlink -f ${line}` ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.; fi; done < <(ldd ${{ env.INSTALL_DIR }}/bin/alien* ${{ env.INSTALL_DIR }}/bin/gtest* ${{ env.INSTALL_DIR }}/lib/*.so ${{ env.INSTALL_DIR }}/lib/arcane_driver | awk 'NF == 4 { print $3 }' | grep -v -e "^/lib64/" -e "^${EBROOTOPENMPI}" -e "^${EBROOTUDUNITS}" -e "^${EBROOTMONO}" -e "^${EBROOTCMAKE}" -e "^${EBROOTDOTNETMINSDK}" -e "^/__w/")
# Copy googletest
\rm -vf ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}//libgtest.so
\cp -avf /soft/irsrvsoft1/expl/eb/r11/${osdir}/easybuild/software/Compiler/GCCcore/7.3.0/googletest/1.10.0/lib64/*.so ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.
cd ${{ env.BUILD_DIR }}
echo '--'
cat /scripts/copyextlib_github.sh
echo '--'
bash /scripts/copyextlib_github.sh
- name: Tar build artifact
shell: bash
Expand Down Expand Up @@ -150,7 +155,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 120
container:
image: ghcr.io/arcaneframework/arcane-ifpen-devenv-foss-2018b:el8-rt
image: ghcr.io/arcaneframework/arcane-ifpen-devenv-foss-2018b-rt:el8
#options: --user root # Avoid to match github UID in container.
strategy:
fail-fast: false
Expand Down
28 changes: 15 additions & 13 deletions .github/workflows/ifpen_el8_gimkl-2018b.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
CCACHE_DIR: '/__w/framework/framework/ccache'
CCACHE_MAXSIZE: 5G
# CMake
CM_BUILD_OPTS: "-j2"
CM_BUILD_OPTS: "-j4"
CM_BUILD_TYPE: Release
CM_CCACHE_OPTS: "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
# CTest
Expand Down Expand Up @@ -78,6 +78,14 @@ jobs:
path: ${{ env.SOURCE_DIR }}
submodules: true

- name: Modules information
id: modules_information
if: |
(success() || failure()) &&
steps.checkout.outcome == 'success'
shell: bash
run: module --terse list 2>&1 | sort

- name: Configure
id: configure
if: |
Expand Down Expand Up @@ -117,17 +125,11 @@ jobs:
steps.install.outcome == 'success'
shell: bash
run: |
osdir=centos_`lsb_release -r | awk -F ":" '{print $2}' | awk -F "." '{print $1}' | tr -d '\t'`
mkdir -p ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}
export LD_LIBRARY_PATH="${{ env.INSTALL_DIR }}/lib:${LD_LIBRARY_PATH}"
# Copy libraries
while read line; do \cp -avn ${line} ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.; if [ -L ${line} ]; then \cp -avn `readlink -f ${line}` ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.; fi; done < <(ldd ${{ env.INSTALL_DIR }}/bin/alien* ${{ env.INSTALL_DIR }}/bin/gtest* ${{ env.INSTALL_DIR }}/lib/*.so ${{ env.INSTALL_DIR }}/lib/arcane_driver | awk 'NF == 4 { print $3 }' | grep -v -e "^/lib64/" -e "^${EBROOTIMPI}" -e "^${EBROOTUDUNITS}" -e "^${EBROOTMONO}" -e "^${EBROOTCMAKE}" -e "^${EBROOTDOTNETMINSDK}" -e "^/__w/")
# Copy imkl libaries
\cp -avf /soft/irsrvsoft1/expl/eb/r11/${osdir}/easybuild/software/MPI/GCC/7.3.0-2.30/impi/2018.3.222/imkl/2018.3.222/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64_lin/libmkl_avx512.so ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.
\cp -avf /soft/irsrvsoft1/expl/eb/r11/${osdir}/easybuild/software/MPI/GCC/7.3.0-2.30/impi/2018.3.222/imkl/2018.3.222/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64_lin/libmkl_def.so ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.
# Copy googletest
\rm -vf ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}//libgtest.so
\cp -avf /soft/irsrvsoft1/expl/eb/r11/${osdir}/easybuild/software/Compiler/GCCcore/7.3.0/googletest/1.10.0/lib64/*.so ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.
cd ${{ env.BUILD_DIR }}
echo '--'
cat /scripts/copyextlib_github.sh
echo '--'
bash /scripts/copyextlib_github.sh
- name: Tar build artifact
shell: bash
Expand Down Expand Up @@ -157,7 +159,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 120
container:
image: ghcr.io/arcaneframework/arcane-ifpen-devenv-gimkl-2018b:el8-rt
image: ghcr.io/arcaneframework/arcane-ifpen-devenv-gimkl-2018b-rt:el8
#options: --user root # Avoid to match github UID in container.
strategy:
fail-fast: false
Expand Down
25 changes: 15 additions & 10 deletions .github/workflows/ifpen_el9_foss-2018b.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
CCACHE_DIR: '/__w/framework/framework/ccache'
CCACHE_MAXSIZE: 5G
# CMake
CM_BUILD_OPTS: "-j2"
CM_BUILD_OPTS: "-j4"
CM_BUILD_TYPE: Release
CM_CCACHE_OPTS: "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
# CTest
Expand Down Expand Up @@ -74,6 +74,14 @@ jobs:
path: ${{ env.SOURCE_DIR }}
submodules: true

- name: Modules information
id: modules_information
if: |
(success() || failure()) &&
steps.checkout.outcome == 'success'
shell: bash
run: module --terse list 2>&1 | sort

- name: Configure
id: configure
if: |
Expand Down Expand Up @@ -113,14 +121,11 @@ jobs:
steps.install.outcome == 'success'
shell: bash
run: |
osdir=centos_`lsb_release -r | awk -F ":" '{print $2}' | awk -F "." '{print $1}' | tr -d '\t'`
mkdir -p ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}
export LD_LIBRARY_PATH="${{ env.INSTALL_DIR }}/lib:${LD_LIBRARY_PATH}"
# Copy libraries
while read line; do \cp -avn ${line} ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.; if [ -L ${line} ]; then \cp -avn `readlink -f ${line}` ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.; fi; done < <(ldd ${{ env.INSTALL_DIR }}/bin/alien* ${{ env.INSTALL_DIR }}/bin/gtest* ${{ env.INSTALL_DIR }}/lib/*.so ${{ env.INSTALL_DIR }}/lib/arcane_driver | awk 'NF == 4 { print $3 }' | grep -v -e "^/lib64/" -e "^${EBROOTOPENMPI}" -e "^${EBROOTUDUNITS}" -e "^${EBROOTMONO}" -e "^${EBROOTCMAKE}" -e "^${EBROOTDOTNETMINSDK}" -e "^/__w/")
# Copy googletest
\rm -vf ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}//libgtest.so
\cp -avf /soft/irsrvsoft1/expl/eb/r11/${osdir}/easybuild/software/Compiler/GCCcore/7.3.0/googletest/1.10.0/lib64/*.so ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.
cd ${{ env.BUILD_DIR }}
echo '--'
cat /scripts/copyextlib_github.sh
echo '--'
bash /scripts/copyextlib_github.sh
- name: Tar build artifact
shell: bash
Expand Down Expand Up @@ -150,7 +155,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 120
container:
image: ghcr.io/arcaneframework/arcane-ifpen-devenv-foss-2018b:el9-rt
image: ghcr.io/arcaneframework/arcane-ifpen-devenv-foss-2018b-rt:el9
#options: --user root # Avoid to match github UID in container.
strategy:
fail-fast: false
Expand Down
28 changes: 15 additions & 13 deletions .github/workflows/ifpen_el9_gimkl-2018b.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
CCACHE_DIR: '/__w/framework/framework/ccache'
CCACHE_MAXSIZE: 5G
# CMake
CM_BUILD_OPTS: "-j2"
CM_BUILD_OPTS: "-j4"
CM_BUILD_TYPE: Release
CM_CCACHE_OPTS: "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
# CTest
Expand Down Expand Up @@ -74,6 +74,14 @@ jobs:
path: ${{ env.SOURCE_DIR }}
submodules: true

- name: Modules information
id: modules_information
if: |
(success() || failure()) &&
steps.checkout.outcome == 'success'
shell: bash
run: module --terse list 2>&1 | sort

- name: Configure
id: configure
if: |
Expand Down Expand Up @@ -113,17 +121,11 @@ jobs:
steps.install.outcome == 'success'
shell: bash
run: |
osdir=centos_`lsb_release -r | awk -F ":" '{print $2}' | awk -F "." '{print $1}' | tr -d '\t'`
mkdir -p ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}
export LD_LIBRARY_PATH="${{ env.INSTALL_DIR }}/lib:${LD_LIBRARY_PATH}"
# Copy libraries
while read line; do \cp -avn ${line} ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.; if [ -L ${line} ]; then \cp -avn `readlink -f ${line}` ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.; fi; done < <(ldd ${{ env.INSTALL_DIR }}/bin/alien* ${{ env.INSTALL_DIR }}/bin/gtest* ${{ env.INSTALL_DIR }}/lib/*.so ${{ env.INSTALL_DIR }}/lib/arcane_driver | awk 'NF == 4 { print $3 }' | grep -v -e "^/lib64/" -e "^${EBROOTIMPI}" -e "^${EBROOTUDUNITS}" -e "^${EBROOTMONO}" -e "^${EBROOTCMAKE}" -e "^${EBROOTDOTNETMINSDK}" -e "^/__w/")
# Copy imkl libaries
\cp -avf /soft/irsrvsoft1/expl/eb/r11/${osdir}/easybuild/software/MPI/GCC/7.3.0-2.30/impi/2018.3.222/imkl/2018.3.222/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64_lin/libmkl_avx512.so ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.
\cp -avf /soft/irsrvsoft1/expl/eb/r11/${osdir}/easybuild/software/MPI/GCC/7.3.0-2.30/impi/2018.3.222/imkl/2018.3.222/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64_lin/libmkl_def.so ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.
# Copy googletest
\rm -vf ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}//libgtest.so
\cp -avf /soft/irsrvsoft1/expl/eb/r11/${osdir}/easybuild/software/Compiler/GCCcore/7.3.0/googletest/1.10.0/lib64/*.so ${{ env.BUILD_DIR }}/${{ env.EXT_LIB_SUBDIR }}/.
cd ${{ env.BUILD_DIR }}
echo '--'
cat /scripts/copyextlib_github.sh
echo '--'
bash /scripts/copyextlib_github.sh
- name: Tar build artifact
shell: bash
Expand Down Expand Up @@ -153,7 +155,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 120
container:
image: ghcr.io/arcaneframework/arcane-ifpen-devenv-gimkl-2018b:el9-rt
image: ghcr.io/arcaneframework/arcane-ifpen-devenv-gimkl-2018b-rt:el9
#options: --user root # Avoid to match github UID in container.
strategy:
fail-fast: false
Expand Down

0 comments on commit d0adc15

Please sign in to comment.