From e3d1e7c0132fdc83988b7f16482ec50e2df7972f Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Tue, 6 Feb 2024 14:39:14 -0500 Subject: [PATCH 01/20] change cache name --- .github/workflows/spack.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 8c3df8fb..6c7ab64c 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -19,7 +19,7 @@ jobs: uses: actions/cache@v3 with: path: ~/mirror - key: spack-cache-2 + key: spack-cache-sandlot-1 - if: ${{ steps.spack-cache.outputs.cache-hit != 'true' }} name: create spack cache @@ -82,7 +82,7 @@ jobs: uses: actions/cache@v3 with: path: ~/mirror - key: spack-cache-2 + key: spack-cache-sandlot-1 - name: build korc run: | From 5f046e823434a448f6c74c5aa528747dc4ddaa86 Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:59:44 -0500 Subject: [PATCH 02/20] setup concretized spack env bump version for github actions/checkout set workflow to manual run only rename unused workflows check spack version pin checkout ref for spack v0.21.1 show git info remove test steps comment refactor spack job one enable push workflow trigger Update README.md add spack concretize -f cache entire spack dir remove -Werror spack garbage collect before creating cache cache key: spack-cache-sandlot-4 --- .../{container.yml => inert_container.yml} | 2 +- .../{machine.yml => inert_machine.yml} | 2 +- .github/workflows/spack.yml | 81 ++++++++++--------- README.md | 1 + build.sh | 2 +- 5 files changed, 49 insertions(+), 39 deletions(-) rename .github/workflows/{container.yml => inert_container.yml} (97%) rename .github/workflows/{machine.yml => inert_machine.yml} (97%) diff --git a/.github/workflows/container.yml b/.github/workflows/inert_container.yml similarity index 97% rename from .github/workflows/container.yml rename to .github/workflows/inert_container.yml index 48e6be59..2126b0e2 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/inert_container.yml @@ -1,4 +1,4 @@ -name: container +name: inert_container on: [ workflow_dispatch ] #on: [ push, workflow_dispatch ] diff --git a/.github/workflows/machine.yml b/.github/workflows/inert_machine.yml similarity index 97% rename from .github/workflows/machine.yml rename to .github/workflows/inert_machine.yml index d92b680b..cec5c62f 100644 --- a/.github/workflows/machine.yml +++ b/.github/workflows/inert_machine.yml @@ -1,4 +1,4 @@ -name: machine +name: inert_machine on: [ workflow_dispatch ] #on: [ push, workflow_dispatch ] diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 6c7ab64c..84bc6e35 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -6,28 +6,36 @@ jobs: runs-on: ubuntu-latest steps: - name: grab main project - uses: actions/checkout@v2 - - - name: grab spack - uses: actions/checkout@v2 - with: - repository: spack/spack - path: ./spack + uses: actions/checkout@v4 - name: spack cache id: spack-cache uses: actions/cache@v3 with: - path: ~/mirror - key: spack-cache-sandlot-1 + key: spack-cache-sandlot-4 + path: | + ./spack + ./spack_sandlot_mirror + ./spack_sandlot_env + + - if: ${{ steps.spack-cache.outputs.cache-hit != 'true' }} + name: grab spack + uses: actions/checkout@v4 + with: + repository: 'spack/spack' + ref: 'v0.21.1' + path: './spack' + # + # git clone --depth=1 --single-branch --branch v0.21.1 https://github.com/spack/spack.git + # - if: ${{ steps.spack-cache.outputs.cache-hit != 'true' }} name: create spack cache run: | . ./spack/share/spack/setup-env.sh - spack env create -d . - spack env activate -p -d . + spack env create -d ./spack_sandlot_env + spack env activate -p -d ./spack_sandlot_env spack config add "config:install_tree:padded_length:128" @@ -38,13 +46,16 @@ jobs: spack install --no-cache --add cmake %gcc@13.1.0 spack load cmake %gcc@13.1.0 + spack concretize -f spack install --no-cache --add hdf5+fortran+mpi %gcc@13.1.0 spack load hdf5+fortran+mpi %gcc@13.1.0 - rm -rf ~/mirror + spack gc -y + + rm -rf ./spack_sandlot_mirror - spack mirror create -d ~/mirror --all - spack mirror add nacho ~/mirror + spack mirror create -d ./spack_sandlot_mirror --all + spack mirror add sandlot ./spack_sandlot_mirror spack gpg create "My Name" "" @@ -52,11 +63,11 @@ jobs: #cp ~/spack/opt/spack/gpg/*.gpg ~/private_gpg_backup #cp ~/spack/opt/spack/gpg/pubring.* ~/mirror - spack buildcache push ~/mirror + spack buildcache push ./spack_sandlot_mirror spack buildcache keys --install --trust --force - spack bootstrap mirror --binary-packages ~/mirror + spack bootstrap mirror --binary-packages ./spack_sandlot_mirror #spack bootstrap add --trust local-sources /metadata/sources #spack bootstrap add --trust local-binaries /metadata/binaries @@ -71,40 +82,37 @@ jobs: - name: grab main project uses: actions/checkout@v2 - - name: grab spack - uses: actions/checkout@v2 - with: - repository: spack/spack - path: ./spack - - name: spack cache id: spack-cache uses: actions/cache@v3 with: - path: ~/mirror - key: spack-cache-sandlot-1 + key: spack-cache-sandlot-4 + path: | + ./spack + ./spack_sandlot_mirror + ./spack_sandlot_env - name: build korc run: | . ./spack/share/spack/setup-env.sh - spack env create -d . - spack env activate -p -d ./ - - spack config add "config:install_tree:padded_length:128" + spack env activate -p -d ./spack_sandlot_env - spack mirror add nacho ~/mirror spack mirror list - spack install --no-check-signature --add gcc@13.1.0 - spack load gcc@13.1.0 - spack compiler find + #spack install --no-check-signature --add gcc@13.1.0 + #spack load gcc@13.1.0 + #spack compiler find - spack install --no-check-signature --add cmake %gcc@13.1.0 - spack load cmake %gcc@13.1.0 + #spack install --no-check-signature --add cmake %gcc@13.1.0 + #spack load cmake %gcc@13.1.0 - spack install --no-check-signature --add hdf5+fortran+mpi %gcc@13.1.0 - spack load hdf5+fortran+mpi %gcc@13.1.0 + #spack install --no-check-signature --add hdf5+fortran+mpi %gcc@13.1.0 + #spack load hdf5+fortran+mpi %gcc@13.1.0 + + spack find -ldf + + spack find -l set -x which cmake @@ -127,3 +135,4 @@ jobs: pwd ls -la cat CMakeCache.txt + diff --git a/README.md b/README.md index 48224be0..95e04988 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ Spack provides an easy way to setup the gfortran compiler toolchain and other de [KORC] [user@localhost KORC]$ spack install --no-cache --add cmake %gcc@13.1.0 [KORC] [user@localhost KORC]$ spack load cmake %gcc@13.1.0 +[KORC] [user@localhost KORC]$ spack concretize -f [KORC] [user@localhost KORC]$ spack install --no-cache --add hdf5+fortran+mpi %gcc@13.1.0 [KORC] [user@localhost KORC]$ spack load hdf5+fortran+mpi %gcc@13.1.0 ``` diff --git a/build.sh b/build.sh index a8298bad..0e3a141d 100755 --- a/build.sh +++ b/build.sh @@ -15,7 +15,7 @@ cmake -DCMAKE_BUILD_TYPE:String=$BUILD_TYPE \ -DCMAKE_Fortran_FLAGS="-DHDF5_DOUBLE_PRESICION -malign-double -fconvert='big-endian'" \ -DCMAKE_C_FLAGS="-malign-double" \ -DCMAKE_CXX_FLAGS="-malign-double" \ - -DCMAKE_Fortran_FLAGS_DEBUG="-ffpe-trap=zero,overflow -fbacktrace -Werror" \ + -DCMAKE_Fortran_FLAGS_DEBUG="-ffpe-trap=zero,overflow -fbacktrace" \ -DCMAKE_C_FLAGS_DEBUG="-g3" \ -DCMAKE_CXX_FLAGS_DEBUG="-g3" ../ From d20765ef250adbf9959997663b74cdd3e950c85e Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 11:00:39 -0500 Subject: [PATCH 03/20] wip, refactor spack workflow --- .github/workflows/spack.yml | 131 ++------------------------- .github/workflows/spack_mirror.yml | 138 +++++++++++++++++++++++++++++ 2 files changed, 143 insertions(+), 126 deletions(-) create mode 100644 .github/workflows/spack_mirror.yml diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 84bc6e35..38633121 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -7,132 +7,11 @@ jobs: steps: - name: grab main project uses: actions/checkout@v4 - - - name: spack cache - id: spack-cache - uses: actions/cache@v3 with: - key: spack-cache-sandlot-4 - path: | - ./spack - ./spack_sandlot_mirror - ./spack_sandlot_env - - - if: ${{ steps.spack-cache.outputs.cache-hit != 'true' }} - name: grab spack - uses: actions/checkout@v4 - with: - repository: 'spack/spack' - ref: 'v0.21.1' - path: './spack' - # - # git clone --depth=1 --single-branch --branch v0.21.1 https://github.com/spack/spack.git - # - - - if: ${{ steps.spack-cache.outputs.cache-hit != 'true' }} - name: create spack cache - run: | - . ./spack/share/spack/setup-env.sh - - spack env create -d ./spack_sandlot_env - spack env activate -p -d ./spack_sandlot_env - - spack config add "config:install_tree:padded_length:128" - - spack install --no-cache --add gcc@13.1.0 - spack load gcc@13.1.0 - spack compiler find - - spack install --no-cache --add cmake %gcc@13.1.0 - spack load cmake %gcc@13.1.0 - - spack concretize -f - spack install --no-cache --add hdf5+fortran+mpi %gcc@13.1.0 - spack load hdf5+fortran+mpi %gcc@13.1.0 - - spack gc -y - - rm -rf ./spack_sandlot_mirror - - spack mirror create -d ./spack_sandlot_mirror --all - spack mirror add sandlot ./spack_sandlot_mirror - - spack gpg create "My Name" "" - - #mkdir ~/private_gpg_backup - #cp ~/spack/opt/spack/gpg/*.gpg ~/private_gpg_backup - #cp ~/spack/opt/spack/gpg/pubring.* ~/mirror - - spack buildcache push ./spack_sandlot_mirror - - spack buildcache keys --install --trust --force - - spack bootstrap mirror --binary-packages ./spack_sandlot_mirror - - #spack bootstrap add --trust local-sources /metadata/sources - #spack bootstrap add --trust local-binaries /metadata/binaries - - spack env deactivate - - - job_two: - needs: job_one - runs-on: ubuntu-latest - steps: - - name: grab main project - uses: actions/checkout@v2 - - - name: spack cache - id: spack-cache - uses: actions/cache@v3 - with: - key: spack-cache-sandlot-4 - path: | - ./spack - ./spack_sandlot_mirror - ./spack_sandlot_env - - - name: build korc - run: | - . ./spack/share/spack/setup-env.sh - - spack env activate -p -d ./spack_sandlot_env - - spack mirror list - - #spack install --no-check-signature --add gcc@13.1.0 - #spack load gcc@13.1.0 - #spack compiler find - - #spack install --no-check-signature --add cmake %gcc@13.1.0 - #spack load cmake %gcc@13.1.0 - - #spack install --no-check-signature --add hdf5+fortran+mpi %gcc@13.1.0 - #spack load hdf5+fortran+mpi %gcc@13.1.0 - - spack find -ldf - - spack find -l - - set -x - which cmake - which gfortran - gfortran --version - set +x - - ./build.sh - - ctest --verbose - - spack env deactivate + path: './KORC' - - name: Show Cache - if: failure() - shell: bash - working-directory: ${{runner.workspace}}/KORC - run: | - tree -L 2 - pwd - ls -la - cat CMakeCache.txt + - run: | + pwd + ls -la + tree -L 2 diff --git a/.github/workflows/spack_mirror.yml b/.github/workflows/spack_mirror.yml new file mode 100644 index 00000000..9da3934d --- /dev/null +++ b/.github/workflows/spack_mirror.yml @@ -0,0 +1,138 @@ +name: spack_mirror +on: [ workflow_dispatch ] + +jobs: + job_one: + runs-on: ubuntu-latest + steps: + - name: grab main project + uses: actions/checkout@v4 + + - name: spack cache + id: spack-cache + uses: actions/cache@v3 + with: + key: spack-cache-sandlot-4 + path: | + ./spack + ./spack_sandlot_mirror + ./spack_sandlot_env + + - if: ${{ steps.spack-cache.outputs.cache-hit != 'true' }} + name: grab spack + uses: actions/checkout@v4 + with: + repository: 'spack/spack' + ref: 'v0.21.1' + path: './spack' + # + # git clone --depth=1 --single-branch --branch v0.21.1 https://github.com/spack/spack.git + # + + - if: ${{ steps.spack-cache.outputs.cache-hit != 'true' }} + name: create spack cache + run: | + . ./spack/share/spack/setup-env.sh + + spack env create -d ./spack_sandlot_env + spack env activate -p -d ./spack_sandlot_env + + spack config add "config:install_tree:padded_length:128" + + spack install --no-cache --add gcc@13.1.0 + spack load gcc@13.1.0 + spack compiler find + + spack install --no-cache --add cmake %gcc@13.1.0 + spack load cmake %gcc@13.1.0 + + spack concretize -f + spack install --no-cache --add hdf5+fortran+mpi %gcc@13.1.0 + spack load hdf5+fortran+mpi %gcc@13.1.0 + + spack gc -y + + rm -rf ./spack_sandlot_mirror + + spack mirror create -d ./spack_sandlot_mirror --all + spack mirror add sandlot ./spack_sandlot_mirror + + spack gpg create "My Name" "" + + #mkdir ~/private_gpg_backup + #cp ~/spack/opt/spack/gpg/*.gpg ~/private_gpg_backup + #cp ~/spack/opt/spack/gpg/pubring.* ~/mirror + + spack buildcache push ./spack_sandlot_mirror + + spack buildcache keys --install --trust --force + + spack bootstrap mirror --binary-packages ./spack_sandlot_mirror + + #spack bootstrap add --trust local-sources /metadata/sources + #spack bootstrap add --trust local-binaries /metadata/binaries + + spack env deactivate + + + job_two: + needs: job_one + runs-on: ubuntu-latest + steps: + - name: grab main project + uses: actions/checkout@v2 + + - name: spack cache + id: spack-cache + uses: actions/cache@v3 + with: + key: spack-cache-sandlot-4 + path: | + ./spack + ./spack_sandlot_mirror + ./spack_sandlot_env + + - name: build korc + run: | + . ./spack/share/spack/setup-env.sh + + spack env activate -p -d ./spack_sandlot_env + + spack mirror list + + #spack install --no-check-signature --add gcc@13.1.0 + #spack load gcc@13.1.0 + #spack compiler find + + #spack install --no-check-signature --add cmake %gcc@13.1.0 + #spack load cmake %gcc@13.1.0 + + #spack install --no-check-signature --add hdf5+fortran+mpi %gcc@13.1.0 + #spack load hdf5+fortran+mpi %gcc@13.1.0 + + spack find -ldf + + spack find -l + + set -x + which cmake + which gfortran + gfortran --version + set +x + + ./build.sh + + ctest --verbose + + spack env deactivate + + - name: Show Cache + if: failure() + shell: bash + working-directory: ${{runner.workspace}}/KORC + run: | + tree -L 2 + pwd + ls -la + cat CMakeCache.txt + From c8da25a0694900d9e59fe833ce55d0d43b94a865 Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 11:01:25 -0500 Subject: [PATCH 04/20] wip, refactor spack workflow --- .github/workflows/spack.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 38633121..194ea567 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -11,7 +11,7 @@ jobs: path: './KORC' - run: | - pwd - ls -la - tree -L 2 + pwd + ls -la + tree -L 2 From 9e85c2740f08d7345b2dae6d00e7291bb7b3a0bd Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 11:11:56 -0500 Subject: [PATCH 05/20] wip, refactor spack workflow --- .github/workflows/spack.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 194ea567..577bbdd1 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -5,12 +5,8 @@ jobs: job_one: runs-on: ubuntu-latest steps: - - name: grab main project - uses: actions/checkout@v4 - with: - path: './KORC' - - run: | + env | sort pwd ls -la tree -L 2 From 91e4fc06da2ff3762591553655c0369852ac885c Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 11:30:16 -0500 Subject: [PATCH 06/20] wip --- .github/workflows/spack.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 577bbdd1..64c47711 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -5,8 +5,13 @@ jobs: job_one: runs-on: ubuntu-latest steps: + - name: grab main project + uses: actions/checkout@v4 + with: + path: ${{ github.workspace }}/../../ + - run: | - env | sort + pwd ls -la tree -L 2 From b70d4b89d8cec53ec918e76c3d0d13b69312b2d5 Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 11:53:18 -0500 Subject: [PATCH 07/20] refactor spack workflow --- .github/workflows/spack.yml | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 64c47711..7789e34a 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -5,14 +5,37 @@ jobs: job_one: runs-on: ubuntu-latest steps: - - name: grab main project + - name: spack cache + id: spack-cache + uses: actions/cache@v3 + with: + key: spack-cache-sandlot-5 + path: | + ./spack + ~/.spack + + - if: ${{ steps.spack-cache.outputs.cache-hit != 'true' }} + name: grab spack uses: actions/checkout@v4 with: - path: ${{ github.workspace }}/../../ + repository: 'spack/spack' + ref: 'v0.21.1' + path: './spack' + # + # git clone --depth=1 --single-branch --branch v0.21.1 https://github.com/spack/spack.git + # + + - if: ${{ steps.spack-cache.outputs.cache-hit != 'true' }} + name: spack install + run: | + . ./spack/share/spack/setup-env.sh + + spack config add config:install_tree:padded_length:128 - - run: | + spack compiler find + spack install --no-cache gcc@13.2.0 + spack compiler add $(spack location -i gcc@13.2.0) - pwd - ls -la - tree -L 2 + spack install --no-cache cmake %gcc@13.2.0 + spack install --no-cache hdf5+fortran+mpi %gcc@13.2.0 From 59e1dd43f559d813bbae4a5bd7fd89c4b2e49e3c Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:17:22 -0500 Subject: [PATCH 08/20] refacotr korc build job --- .github/workflows/spack.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 7789e34a..9bc588d9 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -39,3 +39,39 @@ jobs: spack install --no-cache cmake %gcc@13.2.0 spack install --no-cache hdf5+fortran+mpi %gcc@13.2.0 + + job_two: + needs: job_one + runs-on: ubuntu-latest + steps: + - name: grab main project + uses: actions/checkout@v4 + with: + path: './KORC' + + - name: spack cache + id: spack-cache + uses: actions/cache@v3 + with: + key: spack-cache-sandlot-5 + path: | + ./spack + ~/.spack + + - name: korc build + run: | + + pwd + tree -L 2 + + . ./spack/share/spack/setup-env.sh + spack find -ldf + + set -x + which cmake + which gfortran + gfortran --version + set -x + + + From 840e32cbfc4adf4db35491f6a481ab574d65b23d Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:21:07 -0500 Subject: [PATCH 09/20] list spack compilers in job two --- .github/workflows/spack.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 9bc588d9..f85894b5 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -65,7 +65,9 @@ jobs: tree -L 2 . ./spack/share/spack/setup-env.sh + spack find -ldf + spack compilers set -x which cmake From 2a010285cfdeeaca0b28dc9c2f85b613455c92cc Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:26:44 -0500 Subject: [PATCH 10/20] spack load gcc 13.2 --- .github/workflows/spack.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index f85894b5..ce51ab31 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -69,6 +69,8 @@ jobs: spack find -ldf spack compilers + spack load gcc@13.2.0 + set -x which cmake which gfortran From 36aac166f340367f4acb1d24dcc98af2354d8476 Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:31:34 -0500 Subject: [PATCH 11/20] split out build korc job --- .github/workflows/spack.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index ce51ab31..b9cdec6f 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -58,7 +58,7 @@ jobs: ./spack ~/.spack - - name: korc build + - name: prepare spack run: | pwd @@ -77,5 +77,16 @@ jobs: gfortran --version set -x + - name: build korc + run: | + + set -x + which cmake + which gfortran + gfortran --version + set -x + + + From 1e8b5902d5353b1770cd88a8e0cc0aefd6dc70a0 Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:34:17 -0500 Subject: [PATCH 12/20] build korc --- .github/workflows/spack.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index b9cdec6f..64ae2b88 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -58,7 +58,7 @@ jobs: ./spack ~/.spack - - name: prepare spack + - name: build korc run: | pwd @@ -66,7 +66,7 @@ jobs: . ./spack/share/spack/setup-env.sh - spack find -ldf + #spack find -ldf spack compilers spack load gcc@13.2.0 @@ -77,15 +77,8 @@ jobs: gfortran --version set -x - - name: build korc - run: | - - set -x - which cmake - which gfortran - gfortran --version - set -x - + cd ./KORC + ./build.sh From 4912d91e8cbe4f309b06a17e3d34e2440e1d7a04 Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:38:13 -0500 Subject: [PATCH 13/20] load dependencies --- .github/workflows/spack.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 64ae2b88..4e2106c1 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -70,15 +70,17 @@ jobs: spack compilers spack load gcc@13.2.0 + spack load cmake %gcc@13.2.0 + spack load hdf5+fortran+mpi %gcc@13.2.0 set -x - which cmake - which gfortran - gfortran --version + which cmake && cmake --version + which gfortran && gfortran --version + which h5diff && h5diff --version set -x - cd ./KORC - ./build.sh + #cd ./KORC + #./build.sh From eb194b8aa72baad27fa118c98bf14f18ff360af0 Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:38:39 -0500 Subject: [PATCH 14/20] formatting --- .github/workflows/spack.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 4e2106c1..e0ed45ed 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -74,9 +74,9 @@ jobs: spack load hdf5+fortran+mpi %gcc@13.2.0 set -x - which cmake && cmake --version - which gfortran && gfortran --version - which h5diff && h5diff --version + which cmake && cmake --version + which gfortran && gfortran --version + which h5diff && h5diff --version set -x #cd ./KORC From a732020f4c9be4528cedb4f218af422417530885 Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:40:12 -0500 Subject: [PATCH 15/20] enable build --- .github/workflows/spack.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index e0ed45ed..00cc07b2 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -79,8 +79,8 @@ jobs: which h5diff && h5diff --version set -x - #cd ./KORC - #./build.sh + cd ./KORC + ./build.sh From b9e60bd803e724721bb4fd602e9a2fa16f26e807 Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:42:34 -0500 Subject: [PATCH 16/20] spack garbage collection --- .github/workflows/spack.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 00cc07b2..5868ad21 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -66,6 +66,8 @@ jobs: . ./spack/share/spack/setup-env.sh + spack gc -y + #spack find -ldf spack compilers From a444ce8ec0c3984453cf763d033938bd11dc6128 Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:47:25 -0500 Subject: [PATCH 17/20] relocate spack gc command --- .github/workflows/spack.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 5868ad21..83f84220 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -39,6 +39,8 @@ jobs: spack install --no-cache cmake %gcc@13.2.0 spack install --no-cache hdf5+fortran+mpi %gcc@13.2.0 + spack gc -y + job_two: needs: job_one @@ -66,8 +68,6 @@ jobs: . ./spack/share/spack/setup-env.sh - spack gc -y - #spack find -ldf spack compilers From 4033f347e78e7e7140344a0a90b9706a0ce9f662 Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:49:29 -0500 Subject: [PATCH 18/20] bump cache version --- .github/workflows/spack.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 83f84220..436dd041 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -9,7 +9,7 @@ jobs: id: spack-cache uses: actions/cache@v3 with: - key: spack-cache-sandlot-5 + key: spack-cache-sandlot-6 path: | ./spack ~/.spack @@ -55,7 +55,7 @@ jobs: id: spack-cache uses: actions/cache@v3 with: - key: spack-cache-sandlot-5 + key: spack-cache-sandlot-6 path: | ./spack ~/.spack From 99aaaf00b622ad37990ef20884e9b85114b9626d Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:00:21 -0500 Subject: [PATCH 19/20] disable old workflow --- .github/workflows/{spack_mirror.yml => inert_spack.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{spack_mirror.yml => inert_spack.yml} (100%) diff --git a/.github/workflows/spack_mirror.yml b/.github/workflows/inert_spack.yml similarity index 100% rename from .github/workflows/spack_mirror.yml rename to .github/workflows/inert_spack.yml From 0fb4587b3cc71d8a6189ea63424bdb182721c967 Mon Sep 17 00:00:00 2001 From: Ian Gibbs <90706300+idigs@users.noreply.github.com> Date: Wed, 28 Feb 2024 17:38:44 -0500 Subject: [PATCH 20/20] add show cache job --- .github/workflows/spack.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 436dd041..ab06df86 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -83,7 +83,14 @@ jobs: cd ./KORC ./build.sh - + - name: Show Cache + if: failure() + shell: bash + run: | + tree -L 2 + pwd + ls -la + cat ./KORC/CMakeCache.txt