Skip to content

Release v0.50.0

Release v0.50.0 #188

Workflow file for this run

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
- 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(c("rlang", "future"), repos = "https://cloud.r-project.org")'
- 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 init
morloc install prelude
morloc install types
morloc install conventions
morloc install base
morloc install rbase
morloc install pybase
morloc install cppbase
morloc install math
- name: "Test morloc"
run: |
stack test --fast