forked from ornladios/ADIOS2
-
Notifications
You must be signed in to change notification settings - Fork 0
150 lines (139 loc) · 4.13 KB
/
build-and-test.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
name: GitHub Actions
on:
push:
branches:
- master
- release*
pull_request:
branches:
- master
- release*
jobs:
linux:
runs-on: ubuntu-latest
container:
image: ${{ matrix.container }}
options: --shm-size=1g
env:
GH_YML_JOBNAME: ${{ matrix.jobname }}
GH_YML_OS: Linux
strategy:
fail-fast: false
matrix:
jobname: [
el7,
el7-gnu8-ohpc,
el7-gnu8-openmpi-ohpc,
el7-gnu8-openmpi-ohpc-static,
suse-pgi,
suse-pgi-openmpi,
debian-sid,
debian-sid-openmpi ]
include:
- jobname: el7
container: ornladios/adios2:ci-el7
- jobname: el7-gnu8-ohpc
container: ornladios/adios2:ci-el7-gnu8-ohpc
- jobname: el7-gnu8-openmpi-ohpc
container: ornladios/adios2:ci-el7-gnu8-openmpi-ohpc
- jobname: el7-gnu8-openmpi-ohpc-static
container: ornladios/adios2:ci-el7-gnu8-openmpi-ohpc
- jobname: suse-pgi
container: ornladios/adios2:ci-suse-nvhpcsdk
- jobname: suse-pgi-openmpi
container: ornladios/adios2:ci-suse-nvhpcsdk-openmpi
- jobname: debian-sid
container: ornladios/adios2:ci-debian-sid
- jobname: debian-sid-openmpi
container: ornladios/adios2:ci-debian-sid
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup
run: scripts/ci/gh-actions/linux-setup.sh
- name: Update
run: scripts/ci/gh-actions/run.sh update
- name: Configure
run: scripts/ci/gh-actions/run.sh configure
- name: Build
run: scripts/ci/gh-actions/run.sh build
- name: Test
run: scripts/ci/gh-actions/run.sh test
linux_emu:
runs-on: ubuntu-latest
container:
image: ${{ matrix.container }}
options: --privileged --shm-size=1g
env:
GH_YML_JOBNAME: ${{ matrix.jobname }}
GH_YML_OS: Linux
strategy:
fail-fast: false
matrix:
jobname: [
power8-el7-xl,
power8-el7-xl-smpi ]
include:
- jobname: power8-el7-xl
container: ornladios/adios2:ci-x86_64-power8-el7-xl
arch: ppc64le
- jobname: power8-el7-xl-smpi
container: ornladios/adios2:ci-x86_64-power8-el7-xl-smpi
arch: ppc64le
steps:
- name: Emulation Setup
run: /x86_64/bin/register --reset --targets ${{ matrix.arch }}
env:
PATH: /x86_64/bin
- name: Node.js Setup
run: mount --bind /x86_64/bin/node /__e/node12/bin/node
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup
run: scripts/ci/gh-actions/linux-setup.sh
- name: Update
run: scripts/ci/gh-actions/run.sh update
- name: Configure
run: scripts/ci/gh-actions/run.sh configure
- name: Build
run: scripts/ci/gh-actions/run.sh build
- name: Test
run: scripts/ci/gh-actions/run.sh test
linux_spack:
runs-on: ubuntu-latest
container:
image: ${{ matrix.container }}
options: --shm-size=1g
env:
GH_YML_JOBNAME: ${{ matrix.jobname }}
GH_YML_OS: Linux
strategy:
fail-fast: false
matrix:
jobname: [
el7-spack,
ubuntu1804-spack ]
include:
- jobname: el7-spack
container: ornladios/adios2:ci-el7-spack
- jobname: ubuntu1804-spack
container: ornladios/adios2:ci-ubuntu1804-spack
defaults:
run:
shell: bash -c "source /opt/spack/share/spack/setup-env.sh && spack env activate adios2-ci && bash {0}"
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
env:
PATH: /opt/spack/var/spack/environments/adios2-ci/.spack-env/view/bin:/usr/bin:/bin
- name: Update
run: scripts/ci/gh-actions/run.sh update
- name: Configure
run: scripts/ci/gh-actions/run.sh configure
- name: Build
run: scripts/ci/gh-actions/run.sh build
- name: Test
run: scripts/ci/gh-actions/run.sh test