Commits


shegden authored and Sutou Kouhei committed ac2d8ff4818
ARROW-15195: [MATLAB] Enable GitHub Actions CI for MATLAB Interface on macOS ## Overview This Pull Request: - Enables building of the MATLAB Interface C++ code, running of the C++ tests, and running of the MATLAB tests using GitHub Actions on a `macos-latest` VM. - This is also updating the old version `v0` of [`matlab-actions/setup-matlab`](https://github.com/matlab-actions/setup-matlab) enabled for `ubuntu-latest` VM to the lastest `v1` [`matlab-actions/setup-matlab`](https://github.com/matlab-actions/setup-matlab). ## Implementation This implementation uses [`matlab-actions`](https://github.com/matlab-actions) to automatically install MATLAB into a GitHub Actions Linux and Mac VM. We are using the most updated version: `v1` [`matlab-actions/setup-matlab`](https://github.com/matlab-actions/setup-matlab) to enable the CI for Mac. Here are the steps we require to build and run tests on Mac: - Check out the repository - Install ninja using the `brew` command - Install MATLAB using [`matlab-actions/setup-matlab@v1`](https://github.com/matlab-actions/setup-matlab) - Build MATLAB using the existing `matlab_build.sh` script in `ci/scripts` - Set the `MATLABPATH` environment variable to the MATLAB Interface to Apache Arrow installation directory - Run MATLAB tests in the folder `matlab/test` using [`matlab-actions/run-tests@v1`](https://github.com/matlab-actions/run-tests) ## Testing 1. The GitHub Actions workflows passed successfully with no errors in this [Job](https://github.com/mathworks/arrow/actions/runs/1796808254). 2. All C++ test results and MATLAB test results can be viewed in the workflow logs. ## Future Directions Enable support for Windows: [`matlab-actions/setup-matlab@v1`](https://github.com/matlab-actions/setup-matlab) supports Windows now. We are working on enabling this for the MATLAB Arrow interface. ## Notes Thank you, Fiona @lafiona, for helping me with this pull request to submit the changes for `matlab.yml`. Closes #12342 from sreeharihegden/ARROW-15195 Lead-authored-by: shegden <shegden@mathworks.com> Co-authored-by: Sreehari B. Hegden <sreeharihegden@users.noreply.github.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>