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

Conflict between `actions/cache` and `setup-matlab@v2` #93

Closed mcafaro closed 5 months ago

mcafaro commented 7 months ago

It looks like it may be possible to cause an issue in setup-matlab@v2 if you use the actions/cache action manually rather than the cache: true input.

See https://github.com/opt4ai/prima/actions/runs/7855964578/job/21438238878 for example. In this workflow, MATLAB is cached using actions/cache and setup-matlab@v2 is run with cache: false (default).

Screenshot 2024-02-12 at 9 27 53 AM

When this workflow runs, the cache is restored by actions/cache and setup-matlab@v2 skips claiming it found MATLAB in the cache (even though cache: false). run-command@v2 is then unable to find matlab on the system path.

Screenshot 2024-02-12 at 9 29 12 AM