-
Notifications
You must be signed in to change notification settings - Fork 145
46 lines (43 loc) · 1.47 KB
/
action_on_pull_request.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
name: Action on Pull Request
run-name: ${{ github.actor }} triggered workflow by a pull request update
on:
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
jobs:
# Job 1
build-run-lorenz_96:
# Runner instance OS
runs-on: ubuntu-latest
# Deploy container on top of runner instance
container:
image: hkershaw/dart-dep:1.0
options: "--cap-add=SYS_PTRACE"
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set checked out repo as a safe git directory
run: git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
- name: Build and run lorenz_96
uses: ./.github/actions/build_run_model
with:
model: lorenz_96
run-program: ./filter
use-mpi: true
mpi-n-tasks: 2
# Job 2
build-run-lorenz_63:
runs-on: ubuntu-latest
container:
image: hkershaw/dart-dep:1.0
options: '--cap-add=SYS_PTRACE'
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set checked out repo as a safe git directory
run: git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
- name: Build and run lorenz_63 with no mpi
uses: ./.github/actions/build_run_model
with:
model: lorenz_63
run-program: ./filter
use-mpi: false