mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Setup CI for the mex wrapper code (#2834)
* Setup CI for the mex wrapper code
This commit is contained in:
parent
f395234aa4
commit
a50bd167c4
36
.github/workflows/build_matlab.yml
vendored
Normal file
36
.github/workflows/build_matlab.yml
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
name: Matlab
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user