-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (52 loc) · 1.43 KB
/
workflow.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
name: Build Baselibs
on:
release:
types:
- published
workflow_dispatch:
jobs:
build_baselibs:
runs-on: ubuntu-latest
container:
image: gmao/ubuntu20-openmpi:5.0.2-gcc_13.2.0
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
env:
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
OMPI_MCA_btl_vader_single_copy_mechanism: none
FC: gfortran
CC: gcc
CXX: g++
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set all directories as git safe
run: |
git config --global --add safe.directory '*'
- name: Versions etc.
run: |
gcc --version
gfortran --version
mpirun --version
mpicc --show
mpic++ --show
mpifort --show
echo $BASEDIR
git submodule status
- name: Verify Before
run: |
make verify ESMF_COMM=openmpi ESMF_COMPILER=gfortran
- name: Build
run: |
make -j4 install ESMF_COMM=openmpi ESMF_PYTHON=/usr/bin/python3 ESMF_COMPILER=gfortran
- name: Verify After
run: |
make verify ESMF_COMM=openmpi ESMF_COMPILER=gfortran
- name: Check directory structure
run: |
ls ../x86_64-pc-linux-gnu/gfortran/Linux/*