matlab-actions / setup-matlab

Set up your GitHub Actions workflow with a specific version of MATLAB.
BSD 3-Clause "New" or "Revised" License
75 stars 9 forks source link

matlab-actions/run-command fails with error no such file error #108

Closed AkashJohnSubash closed 4 months ago

AkashJohnSubash commented 4 months ago

To use the cache feature, I updated my workflow to use setup-matlab@v2 from setup-matlab@v1 However, with v2 the Simulink Test workflow fails since simstruct.h cannot be found.

davidbuzinski commented 4 months ago

Hi @AkashJohnSubash ,

setup-matlab@v2 now requires specifying any products that the build requires beyond MATLAB.

You may need to update your CI .yml file to specify the products required. The products parameter takes a space-separated list of products. Spaces in the product names should be replaced with underscores (see the README for a full explanation and examples). Here is an example that includes Simulink and Simulink Test:

    - name: Setup MATLAB
      uses: matlab-actions/setup-matlab@v2
      with:
        products: Simulink Simulink_Test
AkashJohnSubash commented 4 months ago

Hi @davidbuzinski ,

thanks for clarifying that. I did have a look at the Readme earlier but wasn't aware that the Simulink headers were no longer downloaded implicitly. Thanks, this did the trick and fixed my problem