Skip to content

Commit

Permalink
Trying to simplify the github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-noel committed Jun 4, 2024
1 parent 36153c0 commit 9553f5c
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 119 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test-macosx-m1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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@12

- 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 }}
70 changes: 17 additions & 53 deletions .github/workflows/test-macosx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,63 +7,27 @@ on:
jobs:
build_virus_macrophage:

runs-on: macos-11

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run : brew install gcc@10

- name: Build Virus Macrophage project
run: |
make virus-macrophage-sample
make PHYSICELL_CPP=g++-10
runs-on: macos-12
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", config: ""},
{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"}
]

- name: Run Virus Macrophage cell lines project
run: |
./virus-sample
build_physiboss_cell_lines:

runs-on: macos-11

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run : brew install gcc@11

- name: Build PhysiBoSS cell lines project
run: |
make physiboss-cell-lines-sample
make clean
make PHYSICELL_CPP=g++-11
- name: Run PhysiBoSS cell lines project
run: |
./PhysiBoSS_Cell_Lines
build_physimess:

runs-on: macos-11

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install dependencies
run : brew install gcc@11

- name: Build PhysiMeSS project
- name: Build ${{ matrix.projects.name }} project
run: |
make physimess-sample
make clean
make PHYSICELL_CPP=g++-11
make ${{ matrix.projects.project }}
make PHYSICELL_CPP=g++-12
- name: Run PhysiMeSS project
- name: Run ${{ matrix.projects.name }} project
run: |
./project
./project config/Fibre_Initialisation/mymodel_initialisation.xml
./project config/Cell_Fibre_Mechanics/mymodel_rotating.xml
./${{ matrix.projects.binary }} ${{ matrix.projects.config }}
52 changes: 17 additions & 35 deletions .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,30 @@ name: Tests Ubuntu
on:
push:
pull_request:

workflow_dispatch:
jobs:
build:

runs-on: ubuntu-latest

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", config: ""},
{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@v2
- uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt-get install flex bison

- name: Build Virus Macrophage project
run: |
make virus-macrophage-sample
make
- name: Run Virus Macrophage cell lines project
run: |
./virus-sample
- name: Build PhysiBoSS cell lines project
run: |
make reset
make physiboss-cell-lines-sample
make clean
make
- name: Run PhysiBoSS cell lines project
run: |
./PhysiBoSS_Cell_Lines
- name: Build PhysiMeSS project
- name: Build ${{ matrix.projects.name }} project
run: |
make reset
make physimess-sample
make clean
make ${{ matrix.projects.project }}
make
- name: Run PhysiMeSS project
- name: Run ${{ matrix.projects.name }} project
run: |
./project
./project config/Fibre_Initialisation/mymodel_initialisation.xml
./project config/Cell_Fibre_Mechanics/mymodel_rotating.xml
./${{ matrix.projects.binary }} ${{ matrix.projects.config }}
48 changes: 17 additions & 31 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,49 +8,35 @@ jobs:
build:

runs-on: windows-latest

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", config: ""},
{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"}
]

defaults:
run:
shell: msys2 {0}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: msys2/setup-msys2@v2
with:
update: true
install: base-devel flex bison gcc make diffutils mingw-w64-x86_64-toolchain mingw-w64-x86_64-ca-certificates

- name: Build Virus Macrophage project
run: |
make virus-macrophage-sample
make
- name: Run Virus Macrophage cell lines project
run: |
.\\virus-sample.exe
- name: Build PhysiBoSS cell lines project
run: |
make reset
make physiboss-cell-lines-sample
make clean
make
- name: Run PhysiBoSS cell lines project
run: |
.\\PhysiBoSS_Cell_Lines.exe
- name: Build PhysiMeSS project
- name: Build ${{ matrix.projects.name }} project
run: |
make reset
make physimess-sample
make clean
make ${{ matrix.projects.project }}
make
- name: Run PhysiMeSS project
- name: Run ${{ matrix.projects.name }} project
run: |
.\\project
.\\project config\\Fibre_Initialisation\\mymodel_initialisation.xml
.\\project config\\Cell_Fibre_Mechanics\\mymodel_rotating.xml
.\\${{ matrix.projects.binary }}.exe ${{ matrix.projects.config }}

0 comments on commit 9553f5c

Please sign in to comment.