Skip to content

Simplification of the definition of projects to run in GitHub actions #6

Simplification of the definition of projects to run in GitHub actions

Simplification of the definition of projects to run in GitHub actions #6

Workflow file for this run

name: Tests MacOSX M1
on:
push:
pull_request:
workflow_dispatch:
jobs:
build_and_run:
runs-on: macos-14
strategy:
matrix:
projects: [
{project: "virus-macrophage-sample", name: "Virus Macrophage", binary: "virus-sample"},
{project: "physiboss-cell-lines-sample", name: "PhysiBoSS Cell Lines", binary: "PhysiBoSS_Cell_Lines"},
{project: "physimess-sample", name: "PhysiMeSS Sample", binary: "project"},
{project: "physimess-sample", name: "PhysiMeSS Sample", binary: "project", config: "config/Fibre_Initialisation/mymodel_initialisation.xml"},
{project: "physimess-sample", name: "PhysiMeSS Sample", binary: "project", config: "config/Cell_Fibre_Mechanics/mymodel_rotating.xml"},
{project: "template", name: "PhysiCell Template", binary: "project"}
]
steps:
- uses: actions/checkout@v4
- name: Build ${{ matrix.projects.name }} project
run: |
make ${{ matrix.projects.project }}
make PHYSICELL_CPP=g++-12
- name: Run ${{ matrix.projects.name }} project
run: |
./${{ matrix.projects.binary }} ${{ matrix.projects.config }}