-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (64 loc) · 2.03 KB
/
docker-mpich.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
64
65
66
67
68
name: Docker Image CI for CSEG Tools
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
check_file_changed:
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.files.outputs.modified }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get changed files
id: files
uses: jitterbit/get-changed-files@v1
- run: |
for changed_file in ${{ steps.files.outputs.modified }}; do
echo "file ${changed_file} has changed."
done
- name: Files changed
id: set-output
run: echo "::set-output name=changed::${{ steps.files.outputs.modified }}"
build:
runs-on: ubuntu-latest
needs: check_file_changed
if: contains(needs.check_file_changed.outputs.changed, 'mpich')
strategy:
matrix:
mpich: [3.4.3, 4.0.1]
# 1.10 needs to be a string or the trailing 0 is lost
hdf5: ["1.10", "1.12"]
netcdfc: [4.7.4, 4.8.1]
netcdff: [4.5.4]
pnetcdf: [1.12.3]
include:
- hdf5: "1.10"
hdf5m: 8
- hdf5: "1.12"
hdf5m: 1
steps:
- name: Installs
run: |
python3 --version
- uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build the mpich Docker image
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/m${{ matrix.mpich }}h${{ matrix.hdf5 }}nc${{ matrix.netcdfc }}nf${{ matrix.netcdff }}p${{ matrix.pnetcdf }}
file: Dockerfile.mpich
build-args: |
HDF5_VERSION_MAJOR=${{ matrix.hdf5 }}
HDF5_VERSION_MINOR=${{ matrix.hdf5m }}
NETCDF_C_VERSION=${{ matrix.netcdfc }}
NETCDF_F_VERSION=${{ matrix.netcdff }}
PNETCDF_VERSION=${{ matrix.pnetcdf }}
MPI_VERSION=${{ matrix.mpich }}