-
Notifications
You must be signed in to change notification settings - Fork 152
96 lines (71 loc) · 2.56 KB
/
build_mmvii.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Build Bin MMVII
on:
push:
branches:
- 'cm-build-*'
jobs:
build_linux:
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Qt
run: sudo apt install qtbase5-dev
- name: Configure CMake for mm3d
run: cmake -B build -DWITH_CCACHE=OFF -DCMAKE_BUILD_TYPE=Release -DWITH_QT5=ON
- name: Cache mm3d build
id: cache-mm3d
uses: actions/cache@v3
with:
path: |
lib/libelise.a
lib/libANN.a
bin/mm3d
key: ${{ runner.os }}-build-mm3d-${{ hashFiles('src/**/*.cpp','src/**/*.h','include/**/*.h','!src/util/GIT_defines.cpp') }}
- if: ${{ steps.cache-mm3d.outputs.cache-hit != 'true' }}
name: Build elise.lib and mm3d
run: make -C build install -j 4
- name: Configure CMake for MMVII
run: cmake -S MMVII -B MMVII/build -DCMAKE_BUILD_TYPE=Release
- name: Build MMVII first stage, build base code
run: cmake --build MMVII/build -j 4
- name: Generate codesfor Symbolic Derivatives
run: MMVII/bin/MMVII GenCodeSymDer
- name: Build MMVII second stage, build generated code
run: cmake --build MMVII/build -j 4
- name: Run MMVII Tests
working-directory: ./MMVII/bin
run: ./MMVII Bench 1
build_win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
cache: true
- name: Configure CMake
run: cmake -B build -DWITH_CCACHE=OFF -DCMAKE_BUILD_TYPE=Release -DWITH_QT5=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}
- name: Cache mm3d build
id: cache-mm3d
uses: actions/cache@v3
with:
path: |
lib/libelise.a
lib/libANN.a
bin/mm3d
key: ${{ runner.os }}-build-mm3d-${{ hashFiles('src/**/*.cpp','src/**/*.h','include/**/*.h','!src/util/GIT_defines.cpp') }}
- if: ${{ steps.cache-mm3d.outputs.cache-hit != 'true' }}
name: Build elise.lib and mm3d
run: cmake --build build --config Release --target INSTALL -j 4
- name: Configure CMake for MMVII
run: cmake -S MMVII -B MMVII/build
- name: Build MMVII first stage, build base code
run: cmake --build MMVII/build --config Release -j 4
- name: Generate codesfor Symbolic Derivatives
run: MMVII/bin/MMVII GenCodeSymDer
- name: Build MMVII second stage, build generated code
run: cmake --build MMVII/build --config Release -j 4
- name: Run MMVII Tests
working-directory: ./MMVII/bin
run: ./MMVII Bench 1