Skip to content

Fix Github Action builds#632

Merged
aliabdolali merged 1 commit into
NOAA-EMC:developfrom
kgerheiser:bugfix/github-actions
Mar 8, 2022
Merged

Fix Github Action builds#632
aliabdolali merged 1 commit into
NOAA-EMC:developfrom
kgerheiser:bugfix/github-actions

Conversation

@kgerheiser
Copy link
Copy Markdown
Contributor

Pull Request Summary

Fix Github Action builds. The OASIS directory layout changed and the workflows had to be updated.

Description

The OASIS directory layout changed and the workflows had to be updated. Instead of using sed to find and replace the values in the makefile, use the environment variables directly.

@JessicaMeixner-NOAA @mickaelaccensi

Issue(s) addressed

Fix #631

Commit Message

Single commit that doesn't need to be squashed

Check list

Testing

The Actions complete successfully. See https://github.com/kgerheiser/WW3/actions/runs/1911148044

Bring changes to the OASIS tests layout (ww3_tp2.14) to Github workflows.
@kgerheiser
Copy link
Copy Markdown
Contributor Author

Note this says there is one failing check, but it's an internal Github error. I re-ran it from my fork and it passed. Can't re-run in the main repo.

@aliabdolali aliabdolali merged commit d995e8e into NOAA-EMC:develop Mar 8, 2022
Copy link
Copy Markdown
Collaborator

@mickaelaccensi mickaelaccensi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even if it seems to work on my side, I don't catch why input directory is added in gnu.yml and similar files

Comment thread .github/workflows/gnu.yml
cmake .
make VERBOSE=1
cp -r ${GITHUB_WORKSPACE}/ww3/regtests/ww3_tp2.14/work_oasis3-mct ${GITHUB_WORKSPACE}
cp -r ${GITHUB_WORKSPACE}/ww3/regtests/ww3_tp2.14/input/work_oasis3-mct ${GITHUB_WORKSPACE}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why have you added the input directory here ?

Copy link
Copy Markdown
Contributor Author

@kgerheiser kgerheiser Mar 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do I have it wrong? That's the location of work_oasis3-mct. I copy the work directory, which contains the built libraries to the top-level GITHUB_WORKSPACE and then cache it for future runs so it's not built during each run of the workflow.

      - name: cache-env
        id: cache-env
        uses: actions/cache@v2
        with:
          path: |
            spack
            ~/.spack
------> work_oasis3-mct
          key: spack-${{ runner.os }}-${{ env.cache_key }}

aliabdolali pushed a commit that referenced this pull request Mar 16, 2022
Fix Github Action builds.
kestonsmith-noaa pushed a commit to kestonsmith-noaa/WW3 that referenced this pull request Jun 17, 2025
NOAA-EMC#632)

* Add missing modulefile ufs_hera.gnu_debug; bug fix in tests/compile.sh when checking for DEBUG=Y
* Thompson subcycling for develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Github Actions don't work

4 participants