-
Notifications
You must be signed in to change notification settings - Fork 2
95 lines (81 loc) · 3.31 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
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: ["main"]
pull_request:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container: jpdean/mixed_domain
env:
DOLFINX_CMAKE_BUILD_TYPE: Debug
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# - uses: actions/checkout@v3
# with:
# repository: FEniCS/basix
# ref: main
# # Runs a single command using the runners shell
# - name: Install basix
# run: |
# cmake -G Ninja -DCMAKE_BUILD_TYPE=${DOLFINX_CMAKE_BUILD_TYPE} -DCMAKE_CXX_FLAGS=${DOLFINX_CMAKE_CXX_FLAGS} -B build-dir -S ./cpp
# cmake --build build-dir
# cmake --install build-dir
# python3 -m pip install ./python
# # Runs a set of commands using the runners shell
# - name: Install UFL and FFCx
# run: |
# python3 -m pip install git+https://github.com/FEniCS/ufl.git
# python3 -m pip install git+https://github.com/FEniCS/ffcx.git@jpdean/meshview
# - uses: actions/checkout@v3
# with:
# repository: FEniCS/dolfinx
# ref: jpdean/mixed_domain
# # Runs a single command using the runners shell
# - name: Install dolfinx
# run: |
# mkdir -p build-real
# cd build-real
# PETSC_ARCH=linux-gnu-real-32 cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr/local/dolfinx-real -DCMAKE_BUILD_TYPE=${DOLFINX_CMAKE_BUILD_TYPE} -DCMAKE_CXX_FLAGS=${DOLFINX_CMAKE_CXX_FLAGS} ../cpp
# ninja install
# cd ../python
# CXXFLAGS=${DOLFINX_CMAKE_CXX_FLAGS} PETSC_ARCH=linux-gnu-real-32 pip3 install .
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Flake8
run: flake8 .
- name: Run demos (serial)
run: |
python3 hdg_poisson.py
python3 lagrange_multiplier.py
python3 lagrange_multiplier_bc.py
python3 mhd.py
python3 nested_submeshes.py
python3 neumann_bc.py
python3 hdg_navier_stokes.py
python3 poisson_domain_decomp.py
python3 cg_dg_advec_diffusion.py
python3 buoyancy_driven_flow.py
python3 projection.py
- name: Run demos (parallel)
run: |
mpirun -n 2 python3 hdg_poisson.py
mpirun -n 2 python3 lagrange_multiplier.py
mpirun -n 2 python3 lagrange_multiplier_bc.py
mpirun -n 2 python3 mhd.py
mpirun -n 2 python3 nested_submeshes.py
mpirun -n 2 python3 neumann_bc.py
mpirun -n 2 python3 hdg_navier_stokes.py
mpirun -n 2 python3 poisson_domain_decomp.py
mpirun -n 2 python3 cg_dg_advec_diffusion.py
mpirun -n 2 python3 buoyancy_driven_flow.py
mpirun -n 2 python3 projection.py