Fresh CMakeLists.txt #258
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
cmake . -B build | |
cmake --build build --config Release --parallel 4 | |
cmake --install build --component Matlab --prefix ${{ github.workspace }}/dlib/matlab | |
- name: Run example script | |
uses: matlab-actions/run-command@v1 | |
with: | |
command: cd dlib/matlab; example | |