Skip to content

CMake

CMake #1481

Workflow file for this run

name: CMake
on:
push:
schedule:
- cron: '0 13 * * 1'
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt-get install -qq libcfitsio-dev libreadline6-dev libncurses5-dev libfftw3-dev libgsl0-dev flex bison
- name: Install openblas with lapack
run: |
sudo apt-get install gfortran libopenblas-dev liblapacke-dev
- name: get milk and cacao
run: |
git clone https://github.com/milk-org/milk.git
cd milk
./fetch_cacao_dev.sh
mkdir _build
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/milk/_build
run: cmake .. -DINSTALLMAKEDEFAULT=ON -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{github.workspace}}/milk/_build
shell: bash
run: cmake --build . --config $BUILD_TYPE