forked from COSIMA/libaccessom2
-
Notifications
You must be signed in to change notification settings - Fork 2
Add Build CI 2.0 #20
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
Merged
Merged
Add Build CI 2.0 #20
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a612e6c
Remove Build CI 1.0 workflow
aidanheerdegen 33e76f1
Add initial Build-CI 2.0 worklow and mainfests
aidanheerdegen d2979fa
Fix git version ref
aidanheerdegen c74eb19
Removed gitmodules. Modified gitignore to stop it picking up build-ci…
aidanheerdegen 80b1fb1
Changed to the default intel compiler available in upstream CI image
aidanheerdegen 69daf7c
Add gcc-runtime to manifests
aidanheerdegen 9e2d5e2
Change view and concretizer values
aidanheerdegen 6a2b111
Fix compiler version error.
aidanheerdegen 5dd790f
Remove ACCESS-OM2 build CI target
aidanheerdegen 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 hidden or 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,5 @@ | ||
| { | ||
| "gcc_compiler": "[email protected]", | ||
| "intel_compiler": "[email protected]", | ||
| "target": "x86_64" | ||
| } | ||
This file contains hidden or 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,42 @@ | ||
| # Building libaccess-om2 in the context of the ACCESS-OM2 model | ||
| # Using the ACCESS-ESM1.6 spack.yaml from | ||
| # https://github.com/ACCESS-NRI/ACCESS-OM2/blob/d0b802422e172e9a4119055b77085f4c6c88be6e/spack.yaml | ||
| spack: | ||
| # add package specs to the `specs` list | ||
| specs: | ||
| - [email protected]=latest | ||
| packages: | ||
| cice5: | ||
| require: | ||
| - '@git.2023.10.19=access-om2' | ||
| mom5: | ||
| require: | ||
| - '@git.2023.11.09=access-om2' | ||
| libaccessom2: | ||
| require: | ||
| - '@git.{{ ref }}=access-om2' | ||
| oasis3-mct: | ||
| require: | ||
| - '@git.2023.11.09=access-om2' | ||
| netcdf-c: | ||
| require: | ||
| - '@4.7.4' | ||
| netcdf-fortran: | ||
| require: | ||
| - '@4.5.2' | ||
| parallelio: | ||
| require: | ||
| - '@2.5.2' | ||
| openmpi: | ||
| require: | ||
| - '@4.0.2' | ||
| gcc-runtime: | ||
| require: | ||
| - '%gcc target={{ target }}' | ||
| all: | ||
| require: | ||
| - '%{{ intel_compiler }}' | ||
| - 'target={{ target }}' | ||
| view: true | ||
| concretizer: | ||
| unify: true | ||
aidanheerdegen marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
30 changes: 30 additions & 0 deletions
30
.github/build-ci/manifests/intel-libaccessom2.spack.yaml.j2
This file contains hidden or 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 @@ | ||
| # Building OASIS3-mct stand-alone using access-esm1.5 spack version | ||
| spack: | ||
| specs: | ||
| - 'libaccessom2@git.{{ ref }}=access-om2' | ||
| packages: | ||
| oasis3-mct: | ||
| require: | ||
| - '@git.2023.11.09=access-om2' | ||
| openmpi: | ||
| require: | ||
| - '@4.0.2' | ||
| netcdf-c: | ||
| require: | ||
| - '@4.7.4' | ||
| netcdf-fortran: | ||
| require: | ||
| - '@4.5.2' | ||
| parallelio: | ||
| require: | ||
| - '@2.5.2' | ||
| gcc-runtime: | ||
| require: | ||
| - '%gcc target={{ target }}' | ||
| all: | ||
| require: | ||
| - '%{{ intel_compiler }}' | ||
| - 'target={{ target }}' | ||
| concretizer: | ||
| unify: false | ||
| view: false |
This file contains hidden or 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,39 @@ | ||
| name: Build | ||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - main | ||
| jobs: | ||
| pre-ci: | ||
| name: Pre-CI | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up matrix | ||
| id: set-matrix | ||
| # Find all relevant files under .github/build-ci/manifests | ||
| # then output them as a JSON array (minus the last comma) | ||
| run: | | ||
| files=$(find .github/build-ci/manifests/ -iname '*.j2' -printf '"%p",') | ||
| echo "matrix=[${files%,}]" >> $GITHUB_OUTPUT | ||
|
|
||
| ci: | ||
| name: CI | ||
| needs: pre-ci | ||
| strategy: | ||
| fail-fast: false | ||
| max-parallel: 5 | ||
| matrix: | ||
| file: ${{ fromJson(needs.pre-ci.outputs.matrix) }} | ||
| uses: access-nri/build-ci/.github/workflows/ci.yml@v2 | ||
| with: | ||
| spack-manifest-path: ${{ matrix.file }} | ||
| allow-ssh-into-spack-install: false # If true, PR author must ssh into instance to complete job | ||
| spack-manifest-data-path: .github/build-ci/data/standard.json | ||
| # spack-packages-ref: main | ||
| # spack-config-ref: main | ||
| # spack-ref: releases/v0.22 |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -4,7 +4,6 @@ __pycache__ | |
| *.pyc | ||
| .swo | ||
| .cache | ||
| build* | ||
| building-errors.log | ||
| debug.root.01 | ||
| debug.01.000000 | ||
|
|
||
Empty file.
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.
Uh oh!
There was an error while loading. Please reload this page.