Skip to content

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

hkershaw-brown triggered workflow by a pull request update

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

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-mpi:
# 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@v4
- 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 with mpi
uses: ./.github/actions/build_run_model
with:
model: lorenz_96
run-program: ./filter
use-mpi: mpi
mpi-n-tasks: 2
# Job 2
build-run-lorenz_63-nompi:
runs-on: ubuntu-latest
container:
image: hkershaw/dart-dep:1.0
options: '--cap-add=SYS_PTRACE'
steps:
- name: Checkout repo
uses: actions/checkout@v4
- 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: nompi
# Job 3
build-run-lorenz_96-mpif08:
runs-on: ubuntu-latest
container:
image: hkershaw/dart-dep:1.0
options: '--cap-add=SYS_PTRACE'
steps:
- name: Checkout repo
uses: actions/checkout@v4
- 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 with mpif08
uses: ./.github/actions/build_run_model
with:
model: lorenz_96
run-program: ./filter
use-mpi: mpif08
mpi-n-tasks: 2