Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Spack v0.22.2 #1597

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ci/spack-envs/clang14_py311_nompi_h5_ad2/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ spack:
hdf5:
variants: ~mpi
adios2:
variants: ~mpi ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
variants: ~mgard ~mpi ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
cmake:
externals:
- spec: [email protected]
prefix: /usr
prefix: /usr/local
buildable: False
perl:
externals:
Expand Down
7 changes: 5 additions & 2 deletions .github/ci/spack-envs/clang7_nopy_ompi_h5_ad2/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ spack:

packages:
adios2:
variants: ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
variants: ~mgard ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
cmake:
externals:
- spec: [email protected]
prefix: /usr
prefix: /usr/local
buildable: False
openmpi:
externals:
Expand Down Expand Up @@ -60,3 +60,6 @@ spack:

mirrors:
E4S: https://cache.e4s.io
local-buildcache:
url: oci://ghcr.io/openPMD/spack-buildcache
signed: false
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ spack:

packages:
adios2:
variants: ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
variants: ~mgard ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
cmake:
externals:
- spec: [email protected]
prefix: /usr
prefix: /usr/local
buildable: False
openmpi:
externals:
Expand Down
6 changes: 3 additions & 3 deletions .github/ci/spack-envs/clang8_py38_mpich_h5_ad2/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
#
spack:
specs:
- adios2@2.7.1
- adios2
- hdf5
- mpich

packages:
adios2:
variants: ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
variants: ~mgard ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
cmake:
externals:
- spec: [email protected]
prefix: /usr
prefix: /usr/local
buildable: False
mpich:
externals:
Expand Down
4 changes: 2 additions & 2 deletions .github/ci/spack-envs/clangtidy_nopy_ompi_h5_ad2/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ spack:

packages:
adios2:
variants: ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
variants: ~mgard ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
cmake:
externals:
- spec: [email protected]
prefix: /usr
prefix: /usr/local
buildable: False
openmpi:
externals:
Expand Down
4 changes: 2 additions & 2 deletions .github/ci/spack-envs/gcc7_py36_ompi_h5_ad2/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ spack:

packages:
adios2:
variants: ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
variants: ~mgard ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
cmake:
externals:
- spec: [email protected]
prefix: /usr
prefix: /usr/local
buildable: False
openmpi:
externals:
Expand Down
6 changes: 3 additions & 3 deletions .github/ci/spack-envs/gcc_py_ompi_h5_ad2_arm64/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
#
spack:
specs:
- adios2
- adios2@2.7.1
- hdf5
- openmpi

packages:
adios2:
variants: ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
variants: ~mgard ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
cmake:
externals:
- spec: [email protected]
prefix: /usr
prefix: /usr/local
buildable: False
libfabric:
externals:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependencies/install_spack
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

set -eu -o pipefail

spack_ver="0.17.1"
spack_ver="0.22.2"

cd /opt
if [[ -d spack && ! -f spack_${spack_ver} ]]
Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:

clang7_nopy_ompi_h5_ad2:
runs-on: ubuntu-20.04
permissions:
packages: write
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
Expand All @@ -95,12 +97,19 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install clang-7 gfortran libopenmpi-dev python3
sudo .github/workflows/dependencies/install_spack
- name: Set up Spack
uses: spack/setup-spack@v2
with:
ref: v0.22.2
buildcache: true
color: true
path: opt/spack
- name: Build
env: {CC: clang-7, CXX: clang++-7, CXXFLAGS: -Werror}
shell: spack-bash {0}
run: |
eval $(spack env activate --sh .github/ci/spack-envs/clang7_nopy_ompi_h5_ad2/)
spack install
spack install --no-check-signature

share/openPMD/download_samples.sh build
cmake -S . -B build \
Expand All @@ -114,6 +123,12 @@ jobs:
cd build
ctest --output-on-failure

- name: Push packages and update index
run: |
spack -e . mirror set --push --oci-username ${{ github.actor }} --oci-password "${{ secrets.GITHUB_TOKEN }}" local-buildcache
spack -e . buildcache push --base-image ubuntu:20.04 --update-index local-buildcache
if: ${{ !cancelled() }}

# TODO
# clang7_py36_nompi_h5_ad2_libstdc++

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tooling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install clang clang-tidy gfortran libopenmpi-dev python

which cmake

sudo .github/workflows/dependencies/install_spack
- name: Build
env: {CC: clang, CXX: clang++}
Expand Down
Loading