diff --git a/.github/workflows/bat.yml b/.github/workflows/bat.yml index 350a91f..69f0ba6 100644 --- a/.github/workflows/bat.yml +++ b/.github/workflows/bat.yml @@ -89,3 +89,12 @@ jobs: with: release: ${{ matrix.release }} products: ${{ matrix.products }} + - name: Call setup MATLAB again with different release # should not error as in issue 130 + uses: ./ + with: + release: R2023b + - name: Check MATLAB version + uses: matlab-actions/run-command@v2 + with: + command: matlabVer = ver('matlab'); assert(strcmp(matlabVer.Release,'(R2023b)')); + \ No newline at end of file diff --git a/src/mpm.ts b/src/mpm.ts index 5d3efec..ccd502e 100644 --- a/src/mpm.ts +++ b/src/mpm.ts @@ -4,6 +4,7 @@ import * as exec from "@actions/exec"; import * as tc from "@actions/tool-cache"; import {rmRF} from "@actions/io"; import * as path from "path"; +import * as fs from 'fs'; import * as matlab from "./matlab"; import properties from "./properties.json"; @@ -37,6 +38,16 @@ export async function setup(platform: string, architecture: string): Promise