dlib/.github/workflows/build_matlab.yml

37 lines
635 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 23:20:14 +08:00
- name: Run example script
uses: matlab-actions/run-command@v1
with:
2023-07-21 23:29:30 +08:00
command: cd matlab; example
2023-07-21 21:39:47 +08:00
2023-07-21 21:14:56 +08:00