-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (45 loc) · 1.19 KB
/
build_ubuntu.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
41
42
43
44
45
46
47
48
49
50
# This is a workflow to build the repo on ubuntu
name: build_ubuntu
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
env:
CC: gcc-10
CXX: g++-10
steps:
- name: Install Eigen
shell: bash -l {0}
run: |
git clone https://gitlab.com/libeigen/eigen.git
cd eigen
mkdir build
cd build
cmake -DBUILD_TESTING=OFF ..
sudo make install
cd ../..
- name: Install Autodiff
shell: bash -l {0}
run: |
git clone https://github.com/autodiff/autodiff.git
cd autodiff
mkdir build
cd build
cmake -DAUTODIFF_BUILD_TESTS=OFF -DAUTODIFF_BUILD_PYTHON=OFF -DAUTODIFF_BUILD_EXAMPLES=OFF -DAUTODIFF_BUILD_DOCS=OFF ..
sudo make install
cd ../..
- uses: actions/checkout@v3
with:
token: ${{ secrets.SECRET_UPDATE_SUBMODULES }} # stored in GitHub secrets
submodules: true
- name: Install Marmot
shell: bash -l {0}
run: |
mkdir build
cd build
cmake ..
sudo make install