Add CI with GH Actions and iBioSim.jar as artifact

This commit is contained in:
Gil 2020-09-27 18:03:22 +02:00 committed by Gil Arasa Verge
parent 24423a0826
commit 073a6435e7
2 changed files with 46 additions and 0 deletions

44
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,44 @@
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Maven packages
uses: actions/cache@v2.1.1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build iBioSim with Maven
run: mvn -B package -Dmaven.javadoc.skip=true --file pom.xml
- name: Write README
run: echo 'Download latest release from https://github.com/MyersResearchGroup/iBioSim/releases/ and REPLACE iBioSim.jar inside bin/' > README.txt
- name: Prepare artifacts (GUI executable jar as GitHub Artifact)
run: mkdir artifacts && cp -v README.txt artifacts/ && cp -v gui/target/*jar-with-dependencies.jar artifacts/iBioSim.jar
- name: Upload artifacts
uses: actions/upload-artifact@v2.1.4
with:
# Artifact name with commit hash
name: iBioSim-gui-SNAPSHOT-${{ github.sha }}
# A file, directory or wildcard pattern that describes what to upload
path: artifacts
if-no-files-found: error

View file

@ -3,6 +3,8 @@
<img src="docs/media/iBioSim_horizontal.png" width=300>
</p>
[![build](https://github.com/MyersResearchGroup/iBioSim/workflows/build/badge.svg)](https://github.com/MyersResearchGroup/iBioSim/actions)
iBioSim is a computer-aided design (CAD) tool aimed for the modeling, analysis, and design of genetic circuits.
While iBioSim primarily targets models of genetic circuits, models representing metabolic networks, cell-signaling pathways,
and other biological and chemical systems can also be analyzed.