Skip to content

Script to provide pre-compiled binaries, built by GitHub actions, for linux/mac/windows #703

Script to provide pre-compiled binaries, built by GitHub actions, for linux/mac/windows

Script to provide pre-compiled binaries, built by GitHub actions, for linux/mac/windows #703

Workflow file for this run

name: Tests Ubuntu
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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 PhysiMeSS project
run: |
make reset
make physimess-sample
make clean
make
- name: Run PhysiMeSS project
run: |
./project
./project config/Fibre_Initialisation/mymodel_initialisation.xml
./project config/Cell_Fibre_Mechanics/mymodel_rotating.xml
build_physiboss_celllines_binary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build PhysiBoSS Cell lines
run: |
make physiboss-cell-lines-sample
make clean
make Compile_MaBoSS
make static STATIC_OPENMP=/usr/lib/gcc/x86_64-linux-gnu/11/libgomp.a
ldd PhysiBoSS_Cell_Lines
- name: Run PhysiBoSS model
run: |
./PhysiBoSS_Cell_Lines
- name: Build project archive
run: |
rm -fr config/PhysiCell_settings-backup.xml
tar -zcvf physiboss-cell-lines-linux.tar.gz PhysiBoSS_Cell_Lines Makefile main.cpp config/ custom_modules/
- name: Save artifacts
uses: actions/upload-artifact@v4
with:
name: physiboss_cell_lines_binary_linux
path: PhysiBoSS_Cell_Lines
- uses: actions/upload-release-asset@v1
if: github.event_name == 'release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_name: physiboss-cell-lines-linux.tar.gz
asset_path: /home/runner/work/PhysiBoSS/PhysiBoSS/physiboss-cell-lines-linux.tar.gz
asset_content_type: application/gzip