-
Notifications
You must be signed in to change notification settings - Fork 3.4k
52 lines (46 loc) · 942 Bytes
/
build_matlab.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
name: Matlab
on:
push:
branches:
- master
paths:
- ".github/workflows/build_matlab.yml"
- "**.cpp"
- "**.h"
- "**.c"
- "**.cu"
- "**.cmake"
- "**CMakeLists.txt"
pull_request:
branches:
- master
paths:
- ".github/workflows/build_matlab.yml"
- "**.cpp"
- "**.h"
- "**.c"
- "**.cu"
- "**.cmake"
- "**CMakeLists.txt"
defaults:
run:
shell: bash
working-directory: dlib/matlab
jobs:
mex-wrapper:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v1
- name: Compile mex wrappers
run: |
pwd
mkdir build
cd build
cmake ..
cmake --build . --config Release --target install --parallel 4
- name: Run example script
uses: matlab-actions/run-command@v1
with:
command: cd dlib/matlab; example