dlib/.github/workflows/build_matlab.yml

36 lines
659 B
YAML
Raw Normal View History

2023-07-21 20:53:20 +08:00
name: Matlab
on:
push:
branches:
- master
pull_request:
branches:
- master
defaults:
run:
shell: bash
working-directory: dlib/matlab
2023-07-21 20:56:12 +08:00
2023-07-21 20:53:20 +08:00
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: |
2023-07-21 21:01:28 +08:00
pwd
2023-07-21 20:53:20 +08:00
mkdir build
cd build
cmake ..
2023-07-21 21:07:06 +08:00
cmake --build . --config Release --target install --parallel 4
2023-07-21 21:14:56 +08:00
- name: run mex example
run: |
cd ..
2023-07-21 21:38:32 +08:00
matlab -nodisplay -r 'addpath("build"); try, example(), catch, exit(1); end; exit'
2023-07-21 21:14:56 +08:00