Trying to simplify the github actions #76
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 Windows | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
repo: [ | |
{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"} | |
] | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- 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 ${{ matrix.repo.name }} project | |
run: | | |
make ${{ matrix.repo.project }} | |
make | |
- name: Run ${{ matrix.repo.name }} project | |
run: | | |
.\\${{ matrix.repo.binary }}.exe ${{ matrix.repo.config }} | |