@@ -27,33 +27,28 @@ jobs:
2727 LIBMESH : no
2828
2929 steps :
30- - uses : actions/checkout@v3
30+ - uses : actions/checkout@v4
3131
3232# # TESTING CACHE ##
3333# Setup conda
3434 - name : Set up conda
35- uses : conda-incubator/setup-miniconda@v2
35+ uses : conda-incubator/setup-miniconda@v3
3636 with :
37- miniforge-variant : Mambaforge # mamba is faster than base conda
3837 miniforge-version : latest
3938 activate-environment : saltproc-env
4039 use-mamba : true
41- use-only-tar-bz2 : true
4240 - run : |
4341 conda config --env --set pip_interop_enabled True
4442
4543# check for existing cache
4644 - name : Set cache date
4745 run : echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
4846
49- - uses : actions/cache@v3
47+ - uses : actions/cache@v4
5048 id : dependencies-cache
5149 with :
5250 path : |
53- /usr/share/miniconda3/envs/saltproc-env
54- ~/openmc_src
5551 ~/endfb71_hdf5
56- ~/.cache/pip
5752 key : depcache-${{ hashFiles('environment.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
5853
5954# Install dependencies
6560 if : steps.dependencies-cache.outputs.cache-hit != 'true'
6661 run : $GITHUB_WORKSPACE/scripts/ci/openmc-xs.bash
6762
68- - name : OpenMC dependencies
69- run : |
70- sudo apt -y update
71- sudo apt install -y libhdf5-dev
72-
73- - name : Download OpenMC
74- if : steps.dependencies-cache.outputs.cache-hit != 'true'
75- uses : actions/checkout@v3
76- with :
77- repository : openmc-dev/openmc
78- path : openmc
79- submodules : recursive
80-
81- - name : Build OpenMC from source if no cache if found
82- if : steps.dependencies-cache.outputs.cache-hit != 'true'
83- run : $GITHUB_WORKSPACE/tools/ci/build-openmc.sh
84-
85- - name : Restore OpenMC source build from cache
86- if : steps.dependencies-cache.outputs.cache-hit == 'true'
87- run : $GITHUB_WORKSPACE/tools/ci/restore-openmc.sh
88-
8963 - name : Install SaltProc
9064 run : pip install .
9165
9973 shell : bash -l {0}
10074
10175 steps :
102- - uses : actions/checkout@v3
103-
104- # # DOCUMENTATION CACHE ##
105- - name : Set up conda
106- uses : conda-incubator/setup-miniconda@v2
107- with :
108- miniforge-variant : Mambaforge # mamba is faster than base conda
109- miniforge-version : latest
110- activate-environment : saltproc-doc-env
111- use-mamba : true
112- use-only-tar-bz2 : true
113- - run : |
114- conda config --env --set pip_interop_enabled True
115-
116- # check for existing cache
117- - name : Set cache date
118- run : echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
119-
120- - uses : actions/cache@v3
121- id : dependencies-cache
122- with :
123- path : |
124- /usr/share/miniconda3/envs/saltproc-doc-env
125- ~/.cache/pip
126- key : depcache-${{ hashFiles('doc/doc-environment.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
127-
128- # Install dependencies
129- - name : Update environment
130- run : mamba env update -n saltproc-doc-env -f doc/doc-environment.yml
131- if : steps.dependencies-cache.outputs.cache-hit != 'true'
132-
133- - name : Download OpenMC
134- if : steps.dependencies-cache.outputs.cache-hit != 'true'
135- uses : actions/checkout@v3
136- with :
137- repository : openmc-dev/openmc
138- path : openmc
139-
140- - name : Build OpenMC API
141- if : steps.dependencies-cache.outputs.cache-hit != 'true'
142- run : |
143- cd openmc
144- pip install .
145- cd ../
146-
147- - name : Install SaltProc
148- run : pip install .
149-
150- - name : Check packages
151- run : conda list
76+ - uses : actions/checkout@v4
0 commit comments