@@ -9,42 +9,38 @@ concurrency:
99jobs :
1010 intel-autotools :
1111 runs-on : ubuntu-latest
12- container :
13- image : spack/rockylinux9:1.1.1
14- env :
15- CC : mpicc
16- FC : mpifort
17- FCFLAGS : " -g -traceback"
18- TEST_VERBOSE : 1
12+ permissions :
13+ contents : read
14+ packages : write
15+ id-token : write
1916 steps :
17+ - name : Setup Spack
18+ uses : spack/setup-spack@v3.0.0
2019 - name : checkout
2120 uses : actions/checkout@v4.2.2
22- - name : Set up spack and build compiler
21+ - name : Set up build cache and build compiler
2322 run : |
24- source /opt/spack/share/spack/setup-env.sh
25- spack mirror add rem-gh-cache oci://ghcr.io/rem1776/ci-cache-rocky9
23+ spack mirror add \
24+ --autopush \
25+ --oci-username-variable rem1776 \
26+ --oci-password-variable ${{ secrets.GITHUB_TOKEN }} \
27+ rem-gh-cache oci://ghcr.io/rem1776/ci-cache-ubuntu
2628 spack compiler find
2729 spack install nvhpc
28- spack buildcache push rem-gh-cache nvhpc
2930 - name : Install dependencies
3031 run : |
31- source /opt/spack/share/spack/setup-env.sh
3232 spack compiler find
3333 spack install netcdf-fortran %nvhpc mpich %nvhpc libyaml %nvhpc
34- spack buildcache push rem-gh-cache nvhpc
3534 - name : Configure
3635 run : |
37- source /opt/spack/share/spack/setup-env.sh
3836 spack load nvhpc netcdf-fortran libyaml mpich
3937 autoreconf -if ./configure.ac
4038 ./configure --with-yaml
4139 - name : Compile
4240 run : |
43- source /opt/spack/share/spack/setup-env.sh
4441 spack load nvhpc netcdf-fortran libyaml mpich
4542 make -j || make
4643 - name : Run test suite
4744 run : |
48- source /opt/spack/share/spack/setup-env.sh
4945 spack load nvhpc netcdf-fortran libyaml mpich
5046 make check TEST_VERBOSE=1
0 commit comments