@@ -10,44 +10,26 @@ jobs:
1010 intel-autotools :
1111 runs-on : ubuntu-latest
1212 container :
13- image : " nvcr.io/nvidia/nvhpc:26.3-devel-cuda_multi-ubuntu22.04 "
13+ image : spack/rockylinux9:1.1.1
1414 env :
15- CC : mpiicc
16- FC : mpiifort
15+ CC : mpicc
16+ FC : mpifort
1717 FCFLAGS : " -g -traceback"
1818 TEST_VERBOSE : 1
1919 steps :
20- - name : Cache dependencies
21- id : cache
22- uses : actions/cache@v4.2.0
23- with :
24- path : /libs
25- key : intel-libs
26- - name : Install packages for building
27- run : apt-get update && apt-get install -y autoconf libtool automake zlib1g-dev
28- - if : steps.cache.outputs.cache-hit != 'true'
29- name : Build netcdf
30- run : |
31- mkdir /libs
32- wget https://hdf-wordpress-1.s3.amazonaws.com/wp-content/uploads/manual/HDF5/HDF5_1_12_2/source/hdf5-1.12.2.tar.gz
33- tar xf hdf5-1.12.2.tar.gz && cd hdf5-1.12.2
34- ./configure
35- make -j install && cd ..
36- wget https://github.com/Unidata/netcdf-c/archive/refs/tags/v4.8.1.tar.gz
37- tar xf v4.8.1.tar.gz && cd netcdf-c-4.8.1
38- ./configure --enable-remote-fortran-bootstrap
39- make -j install
40- # sets this here to pass embeded configure checks
41- make -j -k build-netcdf-fortran
42- make -j install-netcdf-fortran
43- wget https://github.com/yaml/libyaml/releases/download/0.2.5/yaml-0.2.5.tar.gz
44- tar xf yaml-0.2.5.tar.gz && cd yaml-0.2.5
45- ./configure
46- make -j install && cd
4720 - name : checkout
4821 uses : actions/checkout@v4.2.2
22+ - name : Set up spack and build cache
23+ run : |
24+ spack mirror add rem-gh-cache oci://ghcr.io/rem1776/ci-cache-rocky9
25+ spack compiler find
26+ - name : Install compilers
27+ run : spack install nvhpc@26.1
28+ - name : Install dependencies
29+ run : spack install netcdf-fortran %%nvhpc mpich %%nvhpc libyaml %%nvhpc
4930 - name : Configure
5031 run : |
32+ spack load nvhpc netcdf-fortran libyaml mpich
5133 autoreconf -if ./configure.ac
5234 ./configure --with-yaml
5335 - name : Compile
0 commit comments