-
Notifications
You must be signed in to change notification settings - Fork 18
63 lines (53 loc) · 1.65 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
name: UKMO-CI-Az
on:
pull_request:
branches: [develop]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}
jobs:
build-and-test:
if: github.repository_owner == 'JCSDA-internal'
name: gnu 11.4.1 (UKMO)
runs-on: jedi-self-hosted-ext
env:
REPO: ${{ github.event.repository.name }}
PR: pr-${{ github.event.number }}
steps:
- name: Pre-submit cleanup
run: |
rm -fr ./CI || true
ls -la ./
- name: Checkout ${{ env.REPO }}
uses: actions/checkout@v4
with:
path: CI/meto/oops
repository: JCSDA-internal/oops
- name: Initiate bundle
working-directory: CI/meto
run: ln -sf oops/CI/meto/* .
- name: Checkout jedicmake
uses: actions/checkout@v4
with:
path: CI/meto/jedicmake
repository: JCSDA/jedi-cmake
submodules: recursive
- name: Build and Test
env:
WORKDIR: /var/tmp/${{ env.REPO }}/${{ env.PR }}
shell: bash
run: |
az acr login --name ngmssboxjediacr
docker run --rm \
--name ${REPO}_${PR}_${GITHUB_SHA::7} \
--volume $PWD/CI/meto:${WORKDIR} \
--env OMPI_ALLOW_RUN_AS_ROOT=1 \
--env OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 \
--env OMPI_MCA_rmaps_base_oversubscribe=1 \
--workdir=${WORKDIR} \
--entrypoint=${WORKDIR}/build-and-test \
'ngmssboxjediacr.azurecr.io/jedibase:alma9'
- name: Cleanup workspace
working-directory: ${{github.workspace}}
run: rm -fr CI || true