Skip to content

hkershaw-brown triggered workflow by a pull request update #125

hkershaw-brown triggered workflow by a pull request update

hkershaw-brown triggered workflow by a pull request update #125

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