-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (31 loc) · 958 Bytes
/
cmake.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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