Skip to content

Calling setup-matlab twice in a single workflow causes an error #130

Closed
@mcafaro

Description

@mcafaro

If you attempt to call setup-matlab twice in a single workflow, to set up two different releases of MATLAB for instance, the second call will result in an error saying "Destination file path /home/runner/work/_temp/mpm already exists".

Reproduction workflow:

name: MATLAB
on: [push]
jobs:
  my-job:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository
        uses: actions/checkout@v4
        
      - name: Set up MATLAB R2024b
        uses: matlab-actions/setup-matlab@v2
        with:
          release: R2024b

      - name: Set up MATLAB R2024a
        uses: matlab-actions/setup-matlab@v2
        with:
          release: R2024a

Error:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions