Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/build-ci/data/standard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"gcc_compiler": "gcc@13.2.0",
"intel_compiler": "intel@2021.10.0",
"target": "x86_64"
}
30 changes: 30 additions & 0 deletions .github/build-ci/manifests/intel-libaccessom2.spack.yaml.j2
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
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
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
15 changes: 0 additions & 15 deletions .github/workflows/model-build-test-ci.yml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ __pycache__
*.pyc
.swo
.cache
build*
building-errors.log
debug.root.01
debug.01.000000
Expand Down
Empty file removed .gitmodules
Empty file.