add clang container to CI workflow #447
Workflow file for this 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
--- | |
name: CI | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
branches: [develop] | |
env: | |
REPO: ${{ github.event.repository.name }} | |
BUNDLE: pr-${{ github.event.number }} | |
jobs: | |
build1: | |
name: gnu 11.3.1 (UKMO) | |
if: github.repository_owner == 'MetOffice' | |
runs-on: jedi-self-hosted-rg | |
steps: | |
- name: pre-submit cleanup | |
run: | | |
ls -la ./ | |
rm -fr ./${{ env.BUNDLE }} || true | |
ls -la ./ | |
- name: checkout current | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/${{ env.REPO }} | |
- name: initiate bundle | |
run: cp ./${{ env.BUNDLE }}/${{ env.REPO }}/ci/* ./${{ env.BUNDLE }}/ | |
- name: checkout jedicmake | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/jedicmake | |
repository: JCSDA-internal/jedi-cmake | |
submodules: true | |
token: ${{ secrets.GH_PAT }} | |
- name: checkout oops | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/oops | |
repository: JCSDA-internal/oops | |
token: ${{ secrets.GH_PAT }} | |
- name: matching branch checkout attempt oops ${{ github.head_ref }} | |
if: github.event_name == 'pull_request' | |
run: ./${{ env.BUNDLE }}/get-ref-branch ./${{ env.BUNDLE }}/oops | |
- name: checkout ioda | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/ioda | |
repository: JCSDA-internal/ioda | |
token: ${{ secrets.GH_PAT }} | |
- name: matching branch checkout attempt ioda ${{ github.head_ref }} | |
if: github.event_name == 'pull_request' | |
run: ./${{ env.BUNDLE }}/get-ref-branch ./${{ env.BUNDLE }}/ioda | |
- name: checkout ufo | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/ufo | |
repository: JCSDA-internal/ufo | |
token: ${{ secrets.GH_PAT }} | |
- name: matching branch checkout attempt ufo ${{ github.head_ref }} | |
if: github.event_name == 'pull_request' | |
run: ./${{ env.BUNDLE }}/get-ref-branch ./${{ env.BUNDLE }}/ufo | |
- name: build and test | |
run: | | |
az acr login --name ngmssboxjediacr | |
docker run --rm \ | |
--entrypoint=/usr/local/src/${REPO}/${BUNDLE}/build-and-test \ | |
--workdir=/usr/local/src/${REPO}/${BUNDLE} \ | |
--volume ${PWD}/${BUNDLE}:/usr/local/src/${REPO}/${BUNDLE} \ | |
'ngmssboxjediacr.azurecr.io/jedibase:alma9' \ | |
&& rm -fr ${{github.workspace}}/${{env.BUNDLE}} | |
build2: | |
name: gnu 9.4.0 (JCSDA) | |
if: github.repository_owner == 'MetOffice' | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout current | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/${{ env.REPO }} | |
- name: initiate bundle | |
run: cp ./${{ env.BUNDLE }}/${{ env.REPO }}/ci/* ./${{ env.BUNDLE }}/ | |
- name: checkout jedicmake | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/jedicmake | |
repository: JCSDA-internal/jedi-cmake | |
submodules: true | |
token: ${{ secrets.GH_PAT }} | |
- name: checkout oops | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/oops | |
repository: JCSDA-internal/oops | |
token: ${{ secrets.GH_PAT }} | |
- name: matching branch checkout attempt oops ${{ github.head_ref }} | |
if: github.event_name == 'pull_request' | |
run: ./${{ env.BUNDLE }}/get-ref-branch ./${{ env.BUNDLE }}/oops | |
- name: checkout ioda | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/ioda | |
repository: JCSDA-internal/ioda | |
token: ${{ secrets.GH_PAT }} | |
- name: matching branch checkout attempt ioda ${{ github.head_ref }} | |
if: github.event_name == 'pull_request' | |
run: ./${{ env.BUNDLE }}/get-ref-branch ./${{ env.BUNDLE }}/ioda | |
- name: checkout ufo | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/ufo | |
repository: JCSDA-internal/ufo | |
token: ${{ secrets.GH_PAT }} | |
- name: matching branch checkout attempt ufo ${{ github.head_ref }} | |
if: github.event_name == 'pull_request' | |
run: ./${{ env.BUNDLE }}/get-ref-branch ./${{ env.BUNDLE }}/ufo | |
- name: build and test | |
run: | | |
docker run --rm \ | |
--entrypoint=/usr/local/src/${REPO}/${BUNDLE}/build-and-test \ | |
--workdir=/usr/local/src/${REPO}/${BUNDLE} \ | |
--volume ${PWD}/${BUNDLE}:/usr/local/src/${REPO}/${BUNDLE} \ | |
'jcsda/docker-gnu-openmpi-dev:latest' | |
build3: | |
name: clang 10.0.0 (JCSDA) | |
if: github.repository_owner == 'MetOffice' | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout current | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/${{ env.REPO }} | |
- name: initiate bundle | |
run: cp ./${{ env.BUNDLE }}/${{ env.REPO }}/ci/* ./${{ env.BUNDLE }}/ | |
- name: checkout jedicmake | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/jedicmake | |
repository: JCSDA-internal/jedi-cmake | |
submodules: true | |
token: ${{ secrets.GH_PAT }} | |
- name: checkout oops | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/oops | |
repository: JCSDA-internal/oops | |
token: ${{ secrets.GH_PAT }} | |
- name: matching branch checkout attempt oops ${{ github.head_ref }} | |
if: github.event_name == 'pull_request' | |
run: ./${{ env.BUNDLE }}/get-ref-branch ./${{ env.BUNDLE }}/oops | |
- name: checkout ioda | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/ioda | |
repository: JCSDA-internal/ioda | |
token: ${{ secrets.GH_PAT }} | |
- name: matching branch checkout attempt ioda ${{ github.head_ref }} | |
if: github.event_name == 'pull_request' | |
run: ./${{ env.BUNDLE }}/get-ref-branch ./${{ env.BUNDLE }}/ioda | |
- name: checkout ufo | |
uses: actions/checkout@v4 | |
with: | |
path: ./${{ env.BUNDLE }}/ufo | |
repository: JCSDA-internal/ufo | |
token: ${{ secrets.GH_PAT }} | |
- name: matching branch checkout attempt ufo ${{ github.head_ref }} | |
if: github.event_name == 'pull_request' | |
run: ./${{ env.BUNDLE }}/get-ref-branch ./${{ env.BUNDLE }}/ufo | |
- name: build and test | |
run: | | |
docker run --rm \ | |
--entrypoint=/usr/local/src/${REPO}/${BUNDLE}/build-and-test \ | |
--workdir=/usr/local/src/${REPO}/${BUNDLE} \ | |
--volume ${PWD}/${BUNDLE}:/usr/local/src/${REPO}/${BUNDLE} \ | |
'jcsda/docker-clang-mpich-dev:latest' |