summaryrefslogtreecommitdiff
path: root/share/spack/gitlab/cloud_pipelines/stacks/aws-pcluster-neoverse_n1/spack.yaml
blob: 50ba40992a7bc906f591d1802e9442c39ada8b74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
spack:
  view: false

  definitions:
  - compiler_specs:
    - gcc
    - gettext

  - compiler_target:
    - '%gcc@7.3.1 target=aarch64'

  - optimized_configs:
    - gromacs
    # - lammps
    # - mpas-model
    - openfoam
    - palace
    # - py-devito
    # - quantum-espresso
    # - wrf

  - optimized_libs:
    - mpich
    - openmpi

  specs:
  - matrix:
    - - $compiler_specs
    - - $compiler_target
  - $optimized_configs
  - $optimized_libs

  ci:
    pipeline-gen:
    - build-job:
        image: { "name": "ghcr.io/spack/pcluster-amazonlinux-2:v2023-05-25", "entrypoint": [""] }
        tags: ["aarch64"]
        before_script:
        - - . "./share/spack/setup-env.sh"
          - . /etc/profile.d/modules.sh
          - spack --version
          - spack arch
        # Use gcc from local container buildcache
        - - spack buildcache rebuild-index /bootstrap/local-cache/
          - sed -i.bkp s/"spack install gcc"/"spack install --cache-only --reuse gcc"/ /bootstrap/postinstall.sh
          - spack mirror add local-cache /bootstrap/local-cache
          - spack gpg trust /bootstrap/public-key
          - diff /bootstrap/postinstall.sh /bootstrap/postinstall.sh.bkp || echo Done
        - - /bin/bash "${SPACK_ARTIFACTS_ROOT}/postinstall.sh" -fg
          - spack config --scope site add "packages:all:target:[${SPACK_TARGET_ARCH}]"
    - signing-job:
        before_script:
          # Do not distribute Intel & ARM binaries
          - - for i in $(aws s3 ls --recursive ${SPACK_REMOTE_MIRROR_OVERRIDE}/build_cache/ | grep intel-oneapi | awk '{print $4}' | sed -e 's?^.*build_cache/??g'); do aws s3 rm ${SPACK_REMOTE_MIRROR_OVERRIDE}/build_cache/$i; done
            - for i in $(aws s3 ls --recursive ${SPACK_REMOTE_MIRROR_OVERRIDE}/build_cache/ | grep armpl | awk '{print $4}' | sed -e 's?^.*build_cache/??g'); do aws s3 rm ${SPACK_REMOTE_MIRROR_OVERRIDE}/build_cache/$i; done

  cdash:
    build-group: AWS Packages