Skip to content

Commit

Permalink
Update test_matlab_windows.yml, using the built-in cache of setup-matlab
Browse files Browse the repository at this point in the history
  • Loading branch information
zaikunzhang authored Feb 12, 2024
1 parent 219b3be commit dded62e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/test_matlab_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,11 @@ jobs:
#run: cmd.exe "/K" '".github\scripts\install_oneapi_windows.bat"' # As of MATLAB R2023a, oneAPI 2024 does not work. Try again later.
run: cmd.exe "/K" '".github\scripts\install_oneapi_windows.bat 2023"'

- name: Cache MATLAB # N.B.: Clear the cache when the `latest` version of MATLAB changes in March and September
uses: actions/[email protected]
with:
path: ${{ runner.tool_cache }}/MATLAB
key: ${{ matrix.os }}-${{ matrix.matlab }}

- name: Set up MATLAB
uses: matlab-actions/[email protected]
with:
release: ${{ matrix.matlab }}
cache: true

- name: Conduct the test
uses: matlab-actions/[email protected]
Expand Down

0 comments on commit dded62e

Please sign in to comment.