-
Notifications
You must be signed in to change notification settings - Fork 24
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
Update GH CI #61
Merged
Merged
Update GH CI #61
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
bca9f90
update GH CI workflows
RussTreadon-NOAA bc9c6ec
update intel and gcc GH CI
RussTreadon-NOAA 9ee95f0
replace tabs with whitespace
RussTreadon-NOAA b3ba081
replace yml suffix with yaml
RussTreadon-NOAA bea6ac1
add openblas to ci/spack_gcc.yaml
RussTreadon-NOAA 0668886
remove obsolete ci/spack.yaml
RussTreadon-NOAA ffed9fd
check it stack installed
RussTreadon-NOAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ defaults: | |
|
||
env: | ||
cache_key: gcc | ||
CC: gcc-10 | ||
FC: gfortran-10 | ||
CXX: g++-10 | ||
CC: gcc-13 | ||
FC: gfortran-13 | ||
CXX: g++-13 | ||
|
||
# A note on flushing Action cache and relevance to "cache_key" above. | ||
# There is no way to flush the Action cache, and hence a number (#) is appended | ||
|
@@ -44,10 +44,11 @@ jobs: | |
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
sudo apt clean | ||
docker rmi $(docker image ls -aq) | ||
DOCKER_IMGS=$(docker image ls -aq) | ||
if [[ ! -z "${DOCKER_IMGS}" ]]; then docker rmi ${DOCKER_IMGS}; fi | ||
df -h | ||
|
||
- name: checkout # This is for getting spack.yaml | ||
- name: checkout # This is for getting spack.yml | ||
if: steps.cache-env.outputs.cache-hit != 'true' | ||
uses: actions/checkout@v4 | ||
with: | ||
|
@@ -56,28 +57,27 @@ jobs: | |
# Cache spack, compiler and dependencies | ||
- name: cache-env | ||
id: cache-env | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
spack | ||
~/.spack | ||
key: spack-${{ runner.os }}-${{ env.cache_key }}-${{ hashFiles('gsi-utils/ci/spack.yaml') }} | ||
key: spack-${{ runner.os }}-${{ env.cache_key }}-${{ hashFiles('gsi-utils/ci/spack_gcc.yaml') }} | ||
|
||
# Install dependencies using Spack | ||
- name: install-dependencies-with-spack | ||
if: steps.cache-env.outputs.cache-hit != 'true' | ||
# if: steps.cache-env.outputs.cache-hit != 'true' | ||
run: | | ||
rm -rf spack | ||
git clone -c feature.manyFiles=true https://github.com/JCSDA/spack.git | ||
source spack/share/spack/setup-env.sh | ||
spack env create gsiutils-env gsi-utils/ci/spack.yaml | ||
spack env create gsiutils-env gsi-utils/ci/spack_gcc.yaml | ||
spack env activate gsiutils-env | ||
spack compiler find | ||
sudo apt install cmake | ||
spack external find | ||
spack add [email protected] | ||
spack concretize | ||
spack install -v --fail-fast --dirty | ||
spack clean --all | ||
spack install --fail-fast --dirty | ||
spack clean -a | ||
|
||
gsi-utils: | ||
needs: setup | ||
|
@@ -91,12 +91,12 @@ jobs: | |
|
||
- name: cache-env | ||
id: cache-env | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
spack | ||
~/.spack | ||
key: spack-${{ runner.os }}-${{ env.cache_key }}-${{ hashFiles('gsi-utils/ci/spack.yaml') }} | ||
key: spack-${{ runner.os }}-${{ env.cache_key }}-${{ hashFiles('gsi-utils/ci/spack_gcc.yaml') }} | ||
|
||
- name: build | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Spack environment file to build GSI-utils dependencies | ||
spack: | ||
packages: | ||
all: | ||
providers: | ||
blas: [openblas] | ||
lapack: [openblas] | ||
mpi: [mpich] | ||
compiler: | ||
- gcc@13 | ||
specs: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
view: true | ||
concretizer: | ||
unify: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,12 @@ | |
spack: | ||
packages: | ||
all: | ||
compiler: [intel, gcc@10:10] | ||
providers: | ||
mpi: [intel-oneapi-mpi] | ||
compiler: | ||
- intel | ||
specs: | ||
- [email protected] | ||
- [email protected] ~blosc build_system=cmake | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
|
@@ -21,6 +24,7 @@ spack: | |
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
view: true | ||
concretizer: | ||
unify: when_possible | ||
unify: true |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this not cause the stack to be built each time for
gcc
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think you are correct. This will make the CI process quite long most of the time. This should probably be uncommented (here and in the GSI).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, gcc CI took 38 minutes. I will uncomment the line in question and see what happens.