Simplification of the definition of projects to run in GitHub actions #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests MacOSX M1 | |
on: | |
push: | |
pull_request: | |
jobs: | |
build_virus_macrophage: | |
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: Install dependencies | |
run : brew install gcc@13 | |
- name: Build ${{ matrix.projects.name }} project | |
run: | | |
make ${{ matrix.projects.project }} | |
make PHYSICELL_CPP=g++-13 | |
- name: Run ${{ matrix.projects.name }} project | |
run: | | |
./${{ matrix.projects.binary }} ${{ matrix.projects.config }} | |