-
Notifications
You must be signed in to change notification settings - Fork 7
70 lines (52 loc) · 1.68 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
67
68
69
70
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'
- name: Build Boost
id: boost
uses: egor-tensin/build-boost@v1
with:
version: 1.71.0
libraries: filesystem program_options system
platform: x64
configuration: Release
- name: Installing Boost
run: 'apt-get install -y libboost-all-dev'
- name: Get NLOpt
run: 'git clone https://github.com/stevengj/nlopt.git'
- name: Create NLOpt folders
run: 'cd nlopt && mkdir build'
- name: Install NLOpt
run: 'cd nlopt/build/ && cmake .. && make && sudo make install'
- name: Install pyscicone
run: 'cd pyscicone && pip install -e .[test]'
- name: Test pyscicone
run: 'cd pyscicone && python3 -m pytest -s'
- name: Creating Debug Build Folder
run: 'mkdir debug'
- name: Running CMAKE
run: 'cd debug && cmake -DCMAKE_BUILD_TYPE=Debug ../scicone/'
- name: Running MAKE
run: 'cd debug && make VERBOSE=1'
- name: Unit Tests (Debug)
timeout-minutes: 60
run: 'cd debug && ./tests 0'
- name: Creating Release Build Folder
run: 'mkdir release'
- name: Running CMAKE
run: 'cd release && cmake -DCMAKE_BUILD_TYPE=Release ../scicone/'
- name: Running MAKE
run: 'cd release && make VERBOSE=1'
- name: Unit Tests (Release)
timeout-minutes: 60
run: 'cd debug && ./tests 0'