-
Notifications
You must be signed in to change notification settings - Fork 663
Revamp CI with dependency and Python caching for efficient installs #3112
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
Changes from 23 commits
7509341
1524cf7
1bc8572
ac06042
d7c1bdc
d168428
b572a0e
d2dec2d
dd2f4fb
9a170cd
67a4740
afd5144
8349c8a
41e8f3d
b38e1fa
8dc462c
8877edb
83d41de
57b6388
62c31aa
1e7de1e
faa4883
f43fed5
a5b5a75
2264f3e
cd4d977
36d0ded
f107643
048feeb
652c57c
6e9b941
a35fa53
dd78966
b639169
1897a46
6a1d1c0
6ef06d3
d7714ce
53e9353
f7f32bf
fceb651
dac7cb0
12b162f
2c48675
b4ec864
5b59a92
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| #!/bin/bash | ||
| set -ex | ||
|
|
||
| echo "NJOY_HASH=$(git ls-remote https://github.com/njoy/NJOY2016.git | cut -f 1 |\ | ||
| head -c 15)" >> $GITHUB_ENV | ||
|
johvincau marked this conversation as resolved.
Outdated
|
||
|
|
||
| if [[ $DAGMC = 'y' ]]; then | ||
| echo "MOAB_HASH=$(git ls-remote https://bitbucket.org/fathomteam/moab.git \ | ||
| --branch Version5.1.0 | cut -f 1 | head -c 15)" >> $GITHUB_ENV | ||
|
|
||
| echo "DAGMC_HASH=$(git ls-remote https://github.com/svalinn/dagmc.git |\ | ||
| cut -f 1 | head -c 15)" >> $GITHUB_ENV | ||
| fi | ||
|
|
||
| if [[ $NCRYSTAL = 'y' ]]; then | ||
| echo "NC_HASH=$(git ls-remote https://github.com/mctools/ncrystal \ | ||
| --branch develop | cut -f 1 | head -c 15)" >> $GITHUB_ENV | ||
| fi | ||
|
|
||
| if [[ $VECTFIT = 'y' ]]; then | ||
| echo "PYBIND_HASH=$(git ls-remote https://github.com/pybind/pybind11 \ | ||
| --branch master | cut -f 1 | head -c 15)" >> $GITHUB_ENV | ||
|
|
||
| echo "VF_HASH=$(git ls-remote https://github.com/liangjg/vectfit.git |\ | ||
| cut -f 1 | head -c 15)" >> $GITHUB_ENV | ||
| fi | ||
|
|
||
| if [[ $LIBMESH = 'y' ]]; then | ||
| echo "NC_HASH=$(git ls-remote https://github.com/libmesh/libmesh \ | ||
| --branch v1.7.1 | cut -f 1 | head -c 15)" >> $GITHUB_ENV | ||
| fi | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,12 @@ | ||
| #!/bin/bash | ||
| set -ex | ||
|
|
||
| # MCPL variables | ||
| MCPL_REPO='https://github.com/mctools/mcpl' | ||
|
|
||
| cd $HOME | ||
| git clone https://github.com/mctools/mcpl | ||
| git clone $MCPL_REPO | ||
| cd mcpl | ||
| mkdir build && cd build | ||
| cmake .. && make 2>/dev/null && sudo make install | ||
| cmake .. -DCMAKE_INSTALL_PREFIX=$MCPL_INSTALL_DIR && | ||
|
johvincau marked this conversation as resolved.
Outdated
|
||
| make 2>/dev/null && sudo make install | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,13 @@ | ||
| #!/bin/bash | ||
| set -ex | ||
|
|
||
| # NJOY variables | ||
| NJOY_REPO='https://github.com/njoy/NJOY2016' | ||
| NJOY_INSTALL_DIR=$HOME/NJOY2016 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It might be nice to put all the installed dependencies in a single folder, e.g.,
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've trimmed the NJOY repository by ~30% by removing its own NJOY-specific testing suite out of the cache; however, removing the build directory causes issues with the vectfit installation. Aside from NJOY and vectfit, all other of the dependencies at the very least remove their own build directories before caching. I would like to move all the installed dependencies into a single folder as well; however, I will address that in a future PR since it would take a lot of testing and plenty of commits (and this PR already has enough of those as is!). |
||
|
|
||
| cd $HOME | ||
| git clone https://github.com/njoy/NJOY2016 | ||
| git clone $NJOY_REPO | ||
| cd NJOY2016 | ||
| mkdir build && cd build | ||
| cmake -Dstatic=on .. && make 2>/dev/null && sudo make install | ||
| cmake -Dstatic=on .. -DCMAKE_INSTALL_PREFIX=$NJOY_INSTALL_DIR && | ||
| make 2>/dev/null && sudo make install | ||
Uh oh!
There was an error while loading. Please reload this page.