-
Notifications
You must be signed in to change notification settings - Fork 1
112 lines (112 loc) · 5.59 KB
/
main.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
name: CI
on: push
jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
include:
- download_url: "https://www.paraview.org/files/v5.6/ParaView-5.6.2-MPI-Linux-64bit.tar.gz"
release_name: "ParaView-5.6.2-MPI-Linux-64bit"
variant: ""
paraview_version: "5.6"
- download_url: "https://github.com/lhofmann/paraview-superbuild-docker/releases/download/5.6.2/ParaView-5.6.2-osmesa-MPI-Linux-64bit.tar.gz"
release_name: "ParaView-5.6.2-osmesa-MPI-Linux-64bit"
variant: "-osmesa"
paraview_version: "5.6"
- download_url: "https://github.com/lhofmann/paraview-superbuild-docker/releases/download/5.6.2/ParaView-5.6.2-egl-MPI-Linux-64bit.tar.gz"
release_name: "ParaView-5.6.2-egl-MPI-Linux-64bit"
variant: "-egl"
paraview_version: "5.6"
- download_url: "https://www.paraview.org/files/v5.7/ParaView-5.7.0-MPI-Linux-Python3.7-64bit.tar.gz"
release_name: "ParaView-5.7.0-MPI-Linux-Python3.7-64bit"
variant: ""
paraview_version: "5.7"
- download_url: "https://www.paraview.org/files/v5.7/ParaView-5.7.0-osmesa-MPI-Linux-Python3.7-64bit.tar.gz"
release_name: "ParaView-5.7.0-osmesa-MPI-Linux-Python3.7-64bit"
variant: "-osmesa"
paraview_version: "5.7"
- download_url: "https://github.com/lhofmann/paraview-superbuild-docker/releases/download/5.7.0/ParaView-5.7.0-egl-MPI-Linux-Python3.7-64bit.tar.gz"
release_name: "ParaView-5.7.0-egl-MPI-Linux-Python3.7-64bit"
variant: "-egl"
paraview_version: "5.7"
- download_url: "https://www.paraview.org/files/v5.8/ParaView-5.8.0-MPI-Linux-Python3.7-64bit.tar.gz"
release_name: "ParaView-5.8.0-MPI-Linux-Python3.7-64bit"
variant: ""
paraview_version: "5.8"
- download_url: "https://www.paraview.org/files/v5.8/ParaView-5.8.0-osmesa-MPI-Linux-Python3.7-64bit.tar.gz"
release_name: "ParaView-5.8.0-osmesa-MPI-Linux-Python3.7-64bit"
variant: "-osmesa"
paraview_version: "5.8"
- download_url: "https://github.com/lhofmann/paraview-superbuild-docker/releases/download/5.8.0/ParaView-5.8.0-egl-MPI-Linux-Python3.7-64bit.tar.gz"
release_name: "ParaView-5.8.0-egl-MPI-Linux-Python3.7-64bit"
variant: "-egl"
paraview_version: "5.8"
- download_url: "https://www.paraview.org/files/v5.9/ParaView-5.9.1-MPI-Linux-Python3.8-64bit.tar.gz"
release_name: "ParaView-5.9.1-MPI-Linux-Python3.8-64bit"
variant: ""
paraview_version: "5.9"
- download_url: "https://www.paraview.org/files/v5.9/ParaView-5.9.1-osmesa-MPI-Linux-Python3.8-64bit.tar.gz"
release_name: "ParaView-5.9.1-osmesa-MPI-Linux-Python3.8-64bit"
variant: "-osmesa"
paraview_version: "5.9"
- download_url: "https://www.paraview.org/files/v5.9/ParaView-5.9.1-egl-MPI-Linux-Python3.8-64bit.tar.gz"
release_name: "ParaView-5.9.1-egl-MPI-Linux-Python3.8-64bit"
variant: "-egl"
paraview_version: "5.9"
- download_url: "https://www.paraview.org/files/v5.10/ParaView-5.10.0-MPI-Linux-Python3.9-x86_64.tar.gz"
release_name: "ParaView-5.10.0-MPI-Linux-Python3.9-x86_64"
variant: ""
paraview_version: "5.10"
- download_url: "https://www.paraview.org/files/v5.10/ParaView-5.10.0-osmesa-MPI-Linux-Python3.9-x86_64.tar.gz"
release_name: "ParaView-5.10.0-osmesa-MPI-Linux-Python3.9-x86_64"
variant: "-osmesa"
paraview_version: "5.10"
- download_url: "https://www.paraview.org/files/v5.10/ParaView-5.10.0-egl-MPI-Linux-Python3.9-x86_64.tar.gz"
release_name: "ParaView-5.10.0-egl-MPI-Linux-Python3.9-x86_64"
variant: "-egl"
paraview_version: "5.10"
steps:
- name: Echo environment
env:
paraview_version: ${{ matrix.paraview_version }}
variant: ${{ matrix.variant }}
release_name: ${{ matrix.release_name }}
download_url: ${{ matrix.download_url }}
run: echo $paraview_version $variant $release_name $download_url
- uses: actions/checkout@v2
- name: Checkout submodules
run: |
sed -ie 's/git@github.com:/https:\/\/github.com\//' .gitmodules
git submodule update --init --recursive
- name: Install dependencies
shell: bash
env:
variant: ${{ matrix.variant }}
run: |
sudo apt-get update
sudo apt-get install -y libglu1-mesa libsm6 libxt6 libopengl0
if [ $variant == "-egl" ]; then
sudo apt-get install -y libegl1;
fi
- name: Build
working-directory: ./examples
env:
paraview_version: ${{ matrix.paraview_version }}
variant: ${{ matrix.variant }}
run: ./build_paraview-vtk-template_ParaView${paraview_version}.sh ${variant}
- name: Download ParaView binaries
working-directory: ./examples
env:
release_name: ${{ matrix.release_name }}
download_url: ${{ matrix.download_url }}
run: |
wget "${download_url}" -O ${release_name}.tar.gz
tar xzf ${release_name}.tar.gz
- name: Test
working-directory: ./examples
env:
release_name: ${{ matrix.release_name }}
run: |
./${release_name}/bin/pvpython paraview-vtk-template/tests/test_paraview.py
./${release_name}/bin/pvpython paraview-vtk-template/tests/test_vtk.py