Update versions and changelog #121
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: Test Morloc | |
on: [push] | |
jobs: | |
linux-test: | |
runs-on: ubuntu-latest | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout Morloc code | |
uses: actions/checkout@v2 | |
- name: Set up the environment | |
run: | | |
sudo apt-get update | |
- name: Set up Python environment | |
run: | | |
sudo apt-get install -y python3 | |
sudo apt-get install -y python3-pip | |
pip install pymorlocinternals | |
- name: Set up C++ environment | |
run: | | |
# clone the morloc C++ headers for shared type definitions | |
mkdir -p $HOME/.morloc/include | |
git clone https://github.com/morloclib/mlccpptypes $HOME/.morloc/include/mlccpptypes | |
- uses: r-lib/actions/setup-r@v2 | |
- name: "Set up R caching" | |
uses: actions/cache@v1 | |
with: | |
path: ${{ env.R_LIBS_USER }} | |
key: r-${{ hashFiles('DESCRIPTION') }} | |
- name: "Set up R environment" | |
run: | | |
sudo apt-get install -y r-base | |
sudo apt-get install -y libgsl-dev # required for installation of morloc module math | |
Rscript -e 'install.packages("remotes", repos = "https://cloud.r-project.org")' | |
Rscript -e 'remotes::install_github("morloc-project/rmorlocinternals", dependencies=TRUE)' | |
- name: "Build Morloc" | |
run: | | |
curl -sSL https://get.haskellstack.org/ | sh || echo "already installed" | |
stack upgrade | |
stack install --fast | |
- name: "Load morloc modules" | |
run: | | |
pwd | |
mkdir -p $HOME/.morloc/lib | |
mkdir -p $HOME/.morloc/tmp | |
echo "home : $HOME/.morloc" > ~/.morloc/config | |
echo "library : $HOME/.morloc/lib" >> $HOME/.morloc/config | |
echo "tmpdir : $HOME/.morloc/tmp" >> $HOME/.morloc/config | |
echo "lang_python3 : python3" >> $HOME/.morloc/config | |
sudo apt-get install git # required for installations below | |
morloc install base | |
morloc install conventions | |
morloc install rbase | |
morloc install pybase | |
morloc install cppbase | |
morloc install math | |
- name: "Test morloc" | |
run: | | |
stack test --fast |