From a50bd167c4d5b40374706dcdc4369552d57172b8 Mon Sep 17 00:00:00 2001 From: "Davis E. King" Date: Fri, 21 Jul 2023 11:48:29 -0400 Subject: [PATCH] Setup CI for the mex wrapper code (#2834) * Setup CI for the mex wrapper code --- .github/workflows/build_matlab.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build_matlab.yml diff --git a/.github/workflows/build_matlab.yml b/.github/workflows/build_matlab.yml new file mode 100644 index 000000000..c019fe5a1 --- /dev/null +++ b/.github/workflows/build_matlab.yml @@ -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 + +