Setup CI for the mex wrapper code (#2834)

* Setup CI for the mex wrapper code
This commit is contained in:
Davis E. King 2023-07-21 11:48:29 -04:00 committed by GitHub
parent f395234aa4
commit a50bd167c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

36
.github/workflows/build_matlab.yml vendored Normal file
View 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