-
Notifications
You must be signed in to change notification settings - Fork 7
66 lines (64 loc) · 1.92 KB
/
build.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- run:
name: Installing GCC
command: 'apt-get update && apt-get install -y gcc g++'
- run:
name: Installing Boost
command: 'apt-get install -y libboost-all-dev'
- run:
name: Install CMAKE
command: 'pip install cmake --upgrade'
- run:
name: Get NLOpt
command: 'git clone https://github.com/stevengj/nlopt.git'
- run:
name: Create NLOpt folders
command: 'cd nlopt && mkdir build'
- run:
name: Install NLOpt
command: 'cd nlopt/build/ && cmake .. && make && sudo make install'
- run:
name: Install pyscicone
command: 'cd pyscicone && pip install -e .[test]'
- run:
name: Test pyscicone
command: 'cd pyscicone && python3 -m pytest -s'
- run:
name: Creating Debug Build Folder
command: 'mkdir debug'
- run:
name: Running CMAKE
command: 'cd debug && cmake -DCMAKE_BUILD_TYPE=Debug ../scicone/'
- run:
name: Running MAKE
command: 'cd debug && make VERBOSE=1'
- run:
name: Unit Tests (Debug)
no_output_timeout: 60m
command: 'cd debug && ./tests 0'
- run:
name: Creating Release Build Folder
command: 'mkdir release'
- run:
name: Running CMAKE
command: 'cd release && cmake -DCMAKE_BUILD_TYPE=Release ../scicone/'
- run:
name: Running MAKE
command: 'cd release && make VERBOSE=1'
- run:
name: Unit Tests (Release)
no_output_timeout: 60m
command: 'cd debug && ./tests 0'